Hi again
i am trying to rotate a model in VB.net i am using the below code but it does nothing
'---------------------------------------------------------------------------
node.Rotation.RotateXYBy(90, New Vector3D(6.0F, 0.0F, 0.0F))
'---------------------------------------------------------------------------
Can you please help us out with this one
Re. Rotating models in VB.net
-
- Posts: 16
- Joined: Tue Dec 27, 2005 10:13 am
- Location: Johannesburg, South Africa
Thank you that worked supurbly
I cannot believe how simple it really is
Ok
Can you help again though
I am wondering if it is possible to make the movement smoother as i am finding that when i set the key to make the model rotate or move it is either smooth and slow or fast and noticebly jurky is there a command or code listing to make it smooth and fast
eg. 3d Gamestudio code C Script eg (I know im using VB but this is just an example)
my.posx=x + 20 *time;
this will make the character move not just on the key pressed but also on the clock time of your processor
I would simply like to know if this can be done on irrlicht.net (VB) using obviously a different code in irrlicht
Your help would be much appreciated on this matter
P.s sorry for such a long post
I cannot believe how simple it really is
Ok
Can you help again though
I am wondering if it is possible to make the movement smoother as i am finding that when i set the key to make the model rotate or move it is either smooth and slow or fast and noticebly jurky is there a command or code listing to make it smooth and fast
eg. 3d Gamestudio code C Script eg (I know im using VB but this is just an example)
my.posx=x + 20 *time;
this will make the character move not just on the key pressed but also on the clock time of your processor
I would simply like to know if this can be done on irrlicht.net (VB) using obviously a different code in irrlicht
Your help would be much appreciated on this matter
P.s sorry for such a long post
-
- Posts: 16
- Joined: Tue Dec 27, 2005 10:13 am
- Location: Johannesburg, South Africa
Unfortunately it's just a timing/speed issue and you'll have to play with the speed of the animation.
But you can make sure you've enabled Vsync which could smooth things out (read this article Unraveling the mystery of VSYNC about why)
But you can make sure you've enabled Vsync which could smooth things out (read this article Unraveling the mystery of VSYNC about why)