|
-
Jun 11th, 2001, 09:24 AM
#1
Vectors and Planes (as always)
Ok, just for setup. Working in 3D space, with the Y axis defining Up, I have a plane, defined by 3 random points. I also have a vector tht runs along the XZ plane (flat). How would I find the vector that would follow the first plane in the direction defined by the vector on the XZ Plane? Thanks much.
Z.
-
Jun 11th, 2001, 04:25 PM
#2
transcendental analytic
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jun 11th, 2001, 04:35 PM
#3
transcendental analytic
i'm sorry i got a bit confused with your explanation. The X and Y components should inherit the vector in Z=0, Z can be evaluated by the plane equation if you set it's X and Y components to the X and Y components of the vector in Z=0.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jun 12th, 2001, 07:17 PM
#4
Thanks kedaman. Its working pretty well, except the value I come out with is always negative. Im doing it like this:
Code:
Vel.y = (-pln.d - (pln.a*Pos.x) - (pln.c*Pos.z)) / pln.b;
Otherwise, It works like a charm. Know what's wrong?
Z.
-
Jun 13th, 2001, 10:52 AM
#5
transcendental analytic
I don't know what your a, b and c's are, but i suspect you've missed something in the equation
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jun 14th, 2001, 01:25 PM
#6
Yeah, I figured it out last night. The equation should be:
Code:
Vel.y = ((-pln.d - (pln.a*(Pos.x+Vel.x)) - (pln.c*(Pos.z+Vel.z))) / pln.b) - Pos.y;
Thanks for the help =).
Z.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|