Search found 4 matches

by Timm
Wed Oct 08, 2008 4:38 pm
Forum: Beginners Help
Topic: adjust model to vectors
Replies: 12
Views: 2098

Yeah, but who knows where the mesh is looking? Assuming your mesh is a cube (for testing purposes), I cannot guarantee any "looking" direction. You have to define "front" somehow.

The front was (0,0,1). But nevermind now.

Thanks rogerborg the second was the function I was looking for.
by Timm
Wed Oct 08, 2008 2:01 pm
Forum: Beginners Help
Topic: adjust model to vectors
Replies: 12
Views: 2098

No, I want to rotate the the mesh so that the mesh is looking in the direction of the direction vector.
by Timm
Wed Oct 08, 2008 1:39 pm
Forum: Beginners Help
Topic: adjust model to vectors
Replies: 12
Views: 2098

Okay, i try to explain what i want to achieve.

I got an object that has a precomputed direction vector , right vector and an up vector . Now I want to rotate that object(it's an IMeshSceneNode) around till it faces in the direction of the direction vector . I hope you understand it now :).

Thanks ...
by Timm
Wed Oct 08, 2008 1:24 pm
Forum: Beginners Help
Topic: adjust model to vectors
Replies: 12
Views: 2098

adjust model to vectors

Hello there,
i've got a problem adjusting a model to three given vectors(right vector, up vector and view vector). I'm able to compute them properly and the look in the direction i want them to look. I also changed the Irrlicht Code to override the relative Transformation routine to change the ...