- Home /
Question by
Ekozmaster · May 30, 2015 at 05:21 PM ·
rigidbodyplayermovepositiony
MovePosition in Rigidbody Ignoring Y axis?
I'm trying to MovePosition in my playerRigidbody, using cameraTransform.forward as target position, but, it is a third person, so player can't go through the ground.
If i set Y axis to 0, it can't fall or jump... If i use playerRigibody.velocity.y as target, it works a little, but with some weird behaviours.
What i wanna do is set Y to null, to the MovePosition don't affect the y axis, doing rigidbody works freely. How can i do it?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613200427im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
custom rigidbody movement problem 2 Answers
Player colliding with pickable object 0 Answers
Player can't interact certain Rigid Body while another rigid body can. 0 Answers
Why is my kinematic Rigidbody stuck? 0 Answers
Getting the player to move with platform: Velocity, DistanceJoint, or...? 2 Answers