- Home /
A object and another object has keep perpendicular.
A is a random show cube, B is a ground.
No matter the ground is plane or slope.
Every time when A show...
I want to let A always has keep perpendicular to B.
What can I do?
Thanks everybody!
Answer by Richard J. Hansen · Apr 27, 2011 at 08:04 PM
If the ground is a plane it has a normal http://unity3d.com/support/documentation/ScriptReference/Plane.html.
You could also just grab the "up" vector of your ground and apply a rotation to make sure your cube has the same up vector.
Your answer
Follow this Question
Related Questions
how to get a perpendicular vector for wall-jumping 2 Answers
Draw a perpendicular line from a vertex of the mesh 1 Answer
How to find perpendicular line in 2D? 3 Answers
How to create imaginary perpendicular lines for use in camera targeting in an 3d environment? 0 Answers
Wrong ContactPoint position when modifying velocity 1 Answer