Crystal Space
Welcome, Guest. Please login or register.
November 22, 2014, 03:56:13 am

Login with username, password and session length
Search:     Advanced search
9018 Posts in 2046 Topics by 9090 Members
Latest Member: Carmenferraro
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Game Content Creation
| | |-+  Rotate sprite 3d mesh in the factory file?
« previous next »
Pages: [1] Print
Author Topic: Rotate sprite 3d mesh in the factory file?  (Read 3486 times)
Panch
Jr. Member
**
Posts: 80


View Profile Email
« on: January 25, 2008, 12:34:55 am »

Hello,

I'm trying to rotate my mesh 90 degrees on the Y-axis, I would like to do this in the factory library file so its like a hard transform. I found this tag in spritecal3d:

<hardtransform
    rot_axis_x="0"
    rot_axis_y="1"
    rot_axis_z="0"
    rot_angle="180" />

but I can't seem to find its equivalent in the sprite3d.

Any ideas?
Logged
Panch
Jr. Member
**
Posts: 80


View Profile Email
« Reply #1 on: February 13, 2008, 07:56:15 pm »

Well it doesn't seem to exist, this will do it in code:

Code:
...
        muck1_entity = pl->FindEntity("box1");
csRef<iPcMesh> pcmesh = CEL_QUERY_PROPCLASS_ENT (muck1_entity, iPcMesh);
iMeshWrapper* mesh = pcmesh->GetMesh ();
csXRotMatrix3 x_muck2_rot (4.7f);
mesh->GetMovable ()->Transform(x_muck2_rot);
...
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 4.351 seconds with 16 queries.