Closed AntoineUserName closed 4 months ago
body.GetPosition
/ body.GetWorldTransform
returns a copy of the position. Adjusting it doesn't have any effect other than modifying the copy.
You should use BodyInterface.SetPosition
to update the position of a body.
Hello, I need to edit sometimes the position of some objects, I can get the position with the GetPosition() function but I cannot edit the position.
Note: In this example the variable
body
have the type Jolt.EMotionType_Dynamic.