kevzettler Posted March 5, 2017 Share Posted March 5, 2017 This is out of my Math skill set at the moment. I am casting rays from on an event. I want to draw a plane along the ray. Quote Link to comment Share on other sites More sharing options...
JohnK Posted March 7, 2017 Share Posted March 7, 2017 @kevzettler sorry it has taken a while for you to get a reply. The first problem is which plane. Think of your ray as an axis then a plane along the ray can be rotated around the ray at any angle. A ray has an origin and a direction (and possibly a length) One way to place the plane along the line is to choose a line within the plane and then align this with the ray line. as in this PG http://www.babylonjs-playground.com/#23HHWK#3 Note however that this depends on writing the vectors in the cross product in the right order. Will check how to always do this later as I have a pressing matter to deal with right now. EDIT Just make sure line on the plane comes first in the cross product. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.