Question by
Propellent · Sep 20, 2016 at 05:58 PM ·
rotationpositionrigidbody.addforcequaternions
Rotate y-axis of child object following a rigidbody sphere parent
I have a game I'm working on in which there is a robot model floating over a generic Unity 3D sphere with a rigidbody. I'm not exactly sure how to go about maintaining the alignment between the two. The sphere is the "movement" portion of the character and it is moved via addforce, in addition it is the parent object. The ball rolls realistically and that was the goal, however what I'm trying to accomplish is what I have in the scene view in the picture below. I want the character to only rotate on the y axis, float at the same x and z coords as the ball and about .1 units up on the y axis, and not orbit the ball as it rolls.
unityseff33qrq.png
(213.9 kB)
Comment