- Home /
Unity physics bug?
I move an object with this : transform.Translate(Vector3.forward * ShipSpeed, Space.World);
When the character jumps the character move towards the ships direction and not back.
Answer by Fr0stbite · Aug 09, 2013 at 02:34 PM
I solved: in the character motor script i changed the Moving Platform/Movement : to None
Answer by LucasMars · Aug 09, 2013 at 01:59 PM
I am not sure what you are trying to ask...
Try this code:-
transform.Translate(Vector3.forward * -ShipSpeed, Space.World);
Hope this helps.
Are you using a character controller? If you are then rotate the controller 180 degrees (I think in the y axis).
If it is not, then post the code to move the player.
[EDIT] You will have to edit the character controller script. I did this but it had too many characters and Unity Answers wouldn't let me post it [/EDIT]
how can i rotate character controller?That is the character.
In the Editor, in the inspector, change the y rotation to 180.
Answer by E-H269 · Aug 09, 2013 at 03:27 PM
Well i think this is not a bug the inertia of your player is carrying over.
If you increase the drag of your rigigbody component and increase the speed of the player this should fix it.
p.s. this not what would happen in the real world so it's best to leave it be.
$$anonymous$$y player has CharacterController and not rigidbody
Your answer
Follow this Question
Related Questions
CapsuleCast colliding improperly 2 Answers
2D 360 degress platformer example needed 0 Answers
Unity3D 3.5 Sound / Physics BUG 0 Answers
Character Controller Component, Gravity/inertia, and Root Motion 0 Answers
Collision 2d is not working perfectly 0 Answers