- Home /
Rotating plane from its edge
Hi,
I am rotating a plane. I need to rotate it from the bottom but whenever I am rotating it, it is rotating from its center. Actually I am creating a car meter and I need to move car needle in left and right direction. Whenever it is moving it is moving from its center but I need to move it from the bottom edge. Please help.
Two ways you could go about it if you want it to rotate around another point is to either use transform.RotateAround and some empty game object's position (or just the vector3) you make as the pivot ; OR use a hinge the same way as you would a door.
I would also suggest using (say) Blender to create a new object (a plane) which has an origin on the edge. The basic primitives (cube, plane, cylinder etc etc) are only sample objects primarily used for development. If you have a plane in your game, chances are you will have other objects that you are going to want to model.
Your answer
Follow this Question
Related Questions
Storing Position of First Person Camera 1 Answer
[SOLVED] Scene Tab and Game Tab Rotation 1 Answer
Weird results when rotating a GameObject 0 Answers
Camera behavior the same as the unity editor has 2 Answers
Problem in rotation of plane 1 Answer