Jump to content

How to draw a plane parallel to a Ray?


Recommended Posts

@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.






Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...