API Question Rotating Entire Mesh

SiameseCat

Addon Developer
Addon Developer
Joined
Feb 9, 2008
Messages
1,699
Reaction score
2
Points
0
Location
Ontario
Is there an easy way to rotate an entire mesh after creating it?

The easiest thing would be to create an animation that works on the entire mesh. The problem with this is that, if you need other animations, all the groups in the mesh that aren't being animated have to be listed when creating the rotation animation. I've also looked at the MeshgroupTransform function, but this has to be called every time the visual is created/destroyed.
 

Bj

Addon Developer
Addon Developer
Donator
Joined
Oct 16, 2007
Messages
1,886
Reaction score
11
Points
0
Location
USA-WA
Website
www.orbiter-forum.com
Is there an easy way to rotate an entire mesh after creating it?

The easiest thing would be to create an animation that works on the entire mesh. The problem with this is that, if you need other animations, all the groups in the mesh that aren't being animated have to be listed when creating the rotation animation. I've also looked at the MeshgroupTransform function, but this has to be called every time the visual is created/destroyed.

After its been created? yeah [nomedia="http://www.orbithangar.com/searchid.php?ID=2740"]Mesh Wizard 1.9d[/nomedia]

Does everything :cheers:

Edit:
oh wait I thought you meant the mesh file, do you mean in a .dll? AFAIK you would have to rotate everything one at a time...
 

SiameseCat

Addon Developer
Addon Developer
Joined
Feb 9, 2008
Messages
1,699
Reaction score
2
Points
0
Location
Ontario
Sorry, I meant within Orbiter itself (because I need 2 copies of the mesh, but facing in different directions.)
 

Ashaman42

New member
Joined
May 30, 2009
Messages
88
Reaction score
0
Points
0
If you don't need to see the mesh rotating could you not make a second copy rotated in Mesh Wizard and only display one or the other at a time?
 

SiameseCat

Addon Developer
Addon Developer
Joined
Feb 9, 2008
Messages
1,699
Reaction score
2
Points
0
Location
Ontario
That works (and it's what we're doing), but you have to redo the rotated mesh every time the mesh is changed. It would be a lot simpler if you could just specify a rotation angle the way you do an offset when adding the mesh.
 
Top