Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Subject: Cameras
Subject: scaleDown command
Subject: black out solved
Subject: Aircraft Tutorial
Subject: Mathematical XYZ ?
Subject: Re: Its done This vs That
Subject: Re: Its done first week
recommendations for screen video captures?
Subject: 3DExplorer "Oddity "
Subject: Re: New Director
Subject: ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
Subject: RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Subject: Re: Texturing
Big Break Contest Videos
Subject: New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Subject: Plasma?
Looking for Inspiration
Subject: Weird EMail Q
Subject: Re: It 's done first week ?
Subject: Cherry not cranberry
Subject: Re: New game
Camera Animation Problem
Subject: Particle plugins?
 
calculating vector with specific angle against another vector

calculating vector with specific angle against another vector

2004-03-22       - By Lucas Meijer

 Back
Reply:     1     2  

Roman Bl?th wrote:

> Hi folks,
>
>
> alas, vector-math is the matter:
>
> I've got a normal vector   : vector(0, 1, 0)
> I've got an angle (degrees): 25.0 degrees
>
> What I'm missing is the vector in the x/y-plane that has the angle X
> against the normal vector. Someone can show me how to achieve this?

There are two:

vVector = vector(0,1,0)
t=transform()
t.rotate(0,0,25)    -- rotate around z, as vector(0,0,1) is the normal
of the x/y plane you mentioned.
vAnswer1 = t*vVector
t=transform()
t.rotate(0,0,-25)
vAnswer2 = t*vVector

Bye, Lucas
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
Dir3d-l mailing list
Dir3d-l@(protected)
http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l