Skip to main content
GameDev.net gamedev.net
🔒 Locked

3D Line Math ?

Started by Mythar Jan 27, 2006 at 10:54 AM 1 replies 450+ views
Original Post
Mythar
Mythar
I have a line defined by vector A and B. I want to find a point on this line. (I want to find where the line intersects with an axis) Point I want to find = x,y,z What would x and y be if z = 0 ? What would x and z be if y = 0 ? What would y and z be if x = 0 ? Hope this makes any sence to you :)
Zakwayda
Zakwayda
Google 'ray plane intersection'. (In your post you're asking about the cardinal planes, for which the solution simplifies somewhat, but it's good to know the general solution anyway.)

You should be able to find all the info you need online.
Mythar
Mythar
Thx, got it working now :)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.