1

I’m trying to grab a dynamic body (Object A), disable its physics, and smoothly move and rotate it into a specific holding position relative to another body (Object B). Once it’s in place, I re-enable physics and launch it.

If the object already faces the right direction, the transition works fine. But if it starts off in the "wrong" orientation, the body suddenly jumps outward randomly, reorientates itself, and then goes backward to the specific holding position. For example, if Object A is a cube, I have to have a specific face that faces Object B for the intake animation to work. Otherwise, the odd movement occurs.

Visually: teleports away → rotates → snaps back.

What I want instead is a clean in-place movement and rotation from its current position to the target—no sudden jumps, no weird spin out in space.

I’m interpolating position with lerpVectors and rotation with slerp. The target pose is calculated using a known offset relative to the other body.

Would appreciate any suggestions.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.