Advertisement

Moving models

Started by January 03, 2003 11:39 AM
1 comment, last by Klaim 21 years, 10 months ago
Help please, i didn''t find in DirectX (8 or 9) how to move only a model? (i know how with the world and camera) Wanna strategy and speed with false hacking? Play my game: NetRush ! www.netrush.fr.st
If you know how to "move the world", you know how to move only one object :

- Change the world matrix ("moving" the whole world).
- Draw the object.
- Change back the world matrix to the identity matrix (or whatever it was before).
Advertisement
As Prosper/LOADED said, what you need is to set the
World transformation matrix before rendering an object, i.e.

SetWorldTranformationMatrix( Object1_Matrix )
Render( Object1 )

SetWorldTranformationMatrix( Object2_Matrix )
Render( Object2 )

KaMiKaZe

This topic is closed to new replies.

Advertisement