- Home /
BOX ROTATE ONLY ON X AXIS When Look AT!!HELP!
i have a box (metal crate)...my character is a rigidbody...so i have a function that make the character use one of its arms and use magnetic force....so i want the box goes in the player direction...The crate is a rigidbody...i made a script but i use the transform look at that always interact with the 3d space but i want the box rotate only on the x axis because im making a side scroller...maybe there is a way to add force in the player direction without making the crate looking at him?
PLEASE DON'T USE CAPITAL LETTERS ONLY TO AROUSE ATTENTION!! Thanks.
rigidbody components have rotation restraints as well as translation restraints in the inspector. youll see under rigidbody on your object 3 check boxes for x,y,z for both rotation and translation. just check the things you want to stop.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Physics based rigidbody rotation with a constant force 1 Answer
AddTorque to rotate rigidbody to look at a point 3 Answers
2D rotation question 0 Answers
Looking at target in 2D 1 Answer