Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

IR-3702 Hotfix incorrect gizmo start position on rigidbody entities #10943

Merged
merged 4 commits into from
Aug 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/editor/src/functions/gizmoHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,9 @@ function pointerDown(gizmoEntity) {
const planeIntersect = intersectObjectWithRay(plane, _raycaster, true)
if (planeIntersect) {
const currenttransform = getComponent(targetEntity, TransformComponent)
currenttransform.matrix.decompose(_positionStart, _quaternionStart, _scaleStart)
_positionStart.copy(currenttransform.position)
_quaternionStart.copy(currenttransform.rotation)
_scaleStart.copy(currenttransform.scale)
gizmoControlComponent.worldPositionStart.set(_positionStart)
gizmoControlComponent.worldQuaternionStart.set(_quaternionStart)

Expand Down
Loading