- Home /
Question by
DrzwiPercepcji · Feb 11, 2018 at 04:07 PM ·
rigidbodytransformforce
Moving rigidbody inside moving object
Hi, in my game I have got an empty object which is moving around Vector3.zero with lookAt(Vector3.zero). Inside this object I have got another object, which has got a rigidbody. I would like to move a rigidbody with AddForce, but only on local x-axis and local y-axis. Local z-axis value must to be 0;
When I am running AddForce, the object is moving, but "centrifugal force" is changing value on z-axis. I think the rigidbody is working not on local position, but on world position, so when I am rotating the parent, the child object with force is using force directon from previous frame.
Please help me. How to fix it?
Comment