Newbie math question (again)

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Newbie math question (again)

Postby Auradrummer » Thu Mar 26, 2009 3:30 pm

Hello mates,

I'm with a Newbie doubt. I want a point in the screen that move together my body. The coords of the point are the vector 'coord'.

This isn't only this?

Code: Select all
coord = bodyMatrix.TransformVector (coord)


Didn't worked here ...
Developing a racing game.
Auradrummer
 
Posts: 132
Joined: Sat May 17, 2008 9:17 am

Re: Newbie math question (again)

Postby Auradrummer » Wed Apr 01, 2009 3:19 pm

This really should work, if my "body matrix" was right. You can use it, normally. My problem is that my Matrix was wrong.
Developing a racing game.
Auradrummer
 
Posts: 132
Joined: Sat May 17, 2008 9:17 am

Re: Newbie math question (again)

Postby Aphex » Thu Apr 02, 2009 7:53 am

Are you working in 2d or 3d?
Aphex
 
Posts: 144
Joined: Fri Jun 18, 2004 6:08 am
Location: UK

Re: Newbie math question (again)

Postby Auradrummer » Thu Apr 02, 2009 12:26 pm

Everything in 3D. Why?
Developing a racing game.
Auradrummer
 
Posts: 132
Joined: Sat May 17, 2008 9:17 am

Re: Newbie math question (again)

Postby JoeWright » Thu Apr 02, 2009 3:57 pm

Not exactly sure what you're asking for. Maybe you've got things back to front and you actually want UntransformVect
JoeWright
 
Posts: 69
Joined: Sat Apr 30, 2005 1:42 pm

Re: Newbie math question (again)

Postby Auradrummer » Fri Apr 03, 2009 8:51 am

Joe,

Really, I needed to Untransform in other part of code. But these time I needed to transform really, beacause I had a force that should be applied on the axis of the object. So, I made the vector calculations, transformed and set it again. Worked wonderfully!
Developing a racing game.
Auradrummer
 
Posts: 132
Joined: Sat May 17, 2008 9:17 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 16 guests