Help with calculating vectors in 3d space

gummby8

New member
Joined
Sep 22, 2014
Messages
15
Hello its me again!

I figured out how to phrase my question better this time

I have a 3d airplane

PitchRollYaw.jpg

It has 3 axes or rotation.

The entire model of the plane is a solid piece aside from the propeller which spins. I am able to make the propeller match the pitch yaw and rotation of the main body so it is always facing the proper direction, the problem I am having is reliably placing the propeller on the nose of the plane.

The distance from the planes rotation axes (0,0,0) is always known as the propeller never moves from the face of the plane. So I have 4 variables to work with

D = distance from the center of the plane model to the propeller
P = Plane Pitch
Y = Plane Yaw
R = Plane Rotation

How can I take these 4 variables, put them into an equation suitable for a programming language like java and have it spit out X, Y , Z coordinates to place the propeller?

Thank you!
 
Hello its me again!

I figured out how to phrase my question better this time

I have a 3d airplane

View attachment 4477

It has 3 axes or rotation.

The entire model of the plane is a solid piece aside from the propeller which spins. I am able to make the propeller match the pitch yaw and rotation of the main body so it is always facing the proper direction, the problem I am having is reliably placing the propeller on the nose of the plane.

The distance from the planes rotation axes (0,0,0) is always known as the propeller never moves from the face of the plane. So I have 4 variables to work with

D = distance from the center of the plane model to the propeller
P = Plane Pitch
Y = Plane Yaw
R = Plane Rotation

How can I take these 4 variables, put them into an equation suitable for a programming language like java and have it spit out X, Y , Z coordinates to place the propeller?

Thank you!
I suppose you are trying to write a graphic program.

However, this is involved with very intense math.

You may want to start off with:

http://en.wikipedia.org/wiki/Rotation_matrix

and

http://mathworld.wolfram.com/RotationMatrix.html

and

http://www.kwon3d.com/theory/transform/rot.html

you want to short-cut the process - and getting in trouble!!
 
No I'm not trying to write a program. I am literally doing what I said in the first post. Trying to find the vector of the three rotations and place the propeller a pre-determined distance away along that vector
 
This is what you said in your first post

How can I take these 4 variables, put them into an equation suitable for a programming language like java and have it spit out X, Y , Z coordinates to place the propeller?

Surely sounded like you are trying write a program - to me!!
 
Top