Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Actor2.GetRotation not working with Rotate?  (Read 1223 times)
Trashcan
Community Member
*
Posts: 1346


« on: February 27, 2004, 11:00:02 PM »

Hey, I used RotateY to rotate a mesh
Code:

If frm3D.Inp.IsKeyPressed(TV_KEY_HOME) Then Meshes(SelectedMesh).RotateY 0.2
If frm3D.Inp.IsKeyPressed(TV_KEY_INSERT) Then Meshes(SelectedMesh).RotateX 0.2
If frm3D.Inp.IsKeyPressed(TV_KEY_END) Then Meshes(SelectedMesh).RotateZ 0.2

then using GetRotation to show the rotation in a textbox
Code:

Meshes(SelectedMesh).GetRotation tmp.X, tmp.Y, tmp.Z
Zone.Meshes(SelectedMesh).Rotation.X = tmp.X
Zone.Meshes(SelectedMesh).Rotation.Y = tmp.Y
Zone.Meshes(SelectedMesh).Rotation.Z = tmp.Z

But tmp.X, tmp.Y, and tmp.Z are always 0 Shocked
Anyone know why this is happening?
Thanks,
Trashcan
Logged
Prott
Community Member
*
Posts: 8


« Reply #1 on: August 20, 2006, 03:17:01 PM »

I have also this problem...anyone knows how to figure it out?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks