Search found 6 matches

by SimRex
Tue Mar 02, 2004 10:32 pm
Forum: Beginners Help
Topic: Quaternion problems
Replies: 4
Views: 696

Um.. Okay, I'm being a bit dopey today - just spotted a huge flaw in my reasoning :oops:

It's not working because I'm trying to rotate a rotation vector, not a standard vector.

Why do these things never become apparent during 4 hours of scouring the code, but within 5 minutes of posting a "please ...
by SimRex
Tue Mar 02, 2004 10:24 pm
Forum: Beginners Help
Topic: Quaternion problems
Replies: 4
Views: 696

Quaternion problems

OK, I'm going to cut right to the chase... I'm trying to use quaternions to do rotations in full 3d space, and it's just not working :(

I've been using http://www.gamasutra.com/features/19980703/quaternions_01.htm as a reference guide (requires free registration I think) but have met with basically ...
by SimRex
Sun Feb 08, 2004 1:13 pm
Forum: Beginners Help
Topic: Rotating to face a point
Replies: 9
Views: 1897

the moving forward part can be done a lot smaller :)

try this one:


vector3df forward = ( sin( (Node->getRotation().Y+90)*PI/180.0f ), 0, cos( (Node->getRotation().Y+90)*PI/180.0f ) );
Node->setPosition( Node->getPosition() + forward*0.25f );


if your node isnt a md2 model remove the "+90 ...
by SimRex
Sun Feb 08, 2004 3:43 am
Forum: Beginners Help
Topic: Rotating to face a point
Replies: 9
Views: 1897

Thought I'd post back a few potentially useful things I've found out while trying to solve my problem...

This is probably the wrong place to post it, but I don't know where would be the right place...

Item1 - node->setRotation(xRot,yRot, zRot)

xRot = Rotation about the X axis. Rotation is ...
by SimRex
Fri Feb 06, 2004 12:22 am
Forum: Beginners Help
Topic: Rotating to face a point
Replies: 9
Views: 1897

Well, thank you both for your help, it is appreciated :)

I've decided, after looking more closely at the source code, that a SceneNodeAnimator is what I'm looking for. It will probably require me to cannibalise the Camera class, as keless kind of suggested, to get some of the transformation stuff ...
by SimRex
Thu Feb 05, 2004 4:15 pm
Forum: Beginners Help
Topic: Rotating to face a point
Replies: 9
Views: 1897

Rotating to face a point

Based on numerous forum searches, rotation seems to be a fairly common newbie problem, and it looks like I'm no different...

My problem is, I want to rotate a node to face another node.

The problem is, it doesn't seem to work - the node just keeps facing forwards, and even if I press the "rotate ...