- Home /
Question by
PoisonSkull · May 15, 2014 at 01:59 AM ·
raycastcontrol
How do you rotate an Object without Rotating Raycast
Currently I have a ball, and the raycast that I have shoots downwards, but when I move the ball the raycast starts rotating. The raycast is meant for jumping, and I don't have any solutions.
Comment
Answer by Cherno · May 15, 2014 at 02:04 AM
Just use -Vector3.up for the raycast's direction, this will use world coordinates and thus be always aligned with the world y-axis (downward, in this case).
Your answer

Follow this Question
Related Questions
How to make camera position relative to a specific target. 1 Answer
Strange Behavior with Hit.point 1 Answer
Need help combining code 1 Answer
Storing vs not storing bool during Raycast ? 1 Answer
convert code C# to java.. 1 Answer