Crystal Space
Welcome, Guest. Please login or register.
October 20, 2014, 05:48:54 am

Login with username, password and session length
Search:     Advanced search
9010 Posts in 2044 Topics by 8749 Members
Latest Member: Timothylong
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  General Crystal Space Discussion
| | |-+  Rotating a sprite relatively
« previous next »
Pages: [1] Print
Author Topic: Rotating a sprite relatively  (Read 1858 times)
[SOM]Roberto
Jr. Member
**
Posts: 79


View Profile Email
« on: February 11, 2006, 09:17:02 pm »

My code now:

//-----------------------------------------------------------------------------
void Simple::moving_rotate_X()
{
    mesh [modells]->GetMovable()->GetTransform().RotateThis((csVector3
    (1,0,0)), HALF_PI);
}



//-----------------------------------------------------------------------------
void Simple::moving_rotate_Y()
{
    mesh [modells]->GetMovable()->GetTransform().RotateThis((csVector3
    (0,0,1)), HALF_PI);
}



//-----------------------------------------------------------------------------
void Simple::moving_rotate_Z()
{
    mesh [modells]->GetMovable()->GetTransform().RotateThis((csVector3
    (0,1,0)), HALF_PI);
}

But is rotating always different directions.
I wanna rotating my sprite relatively.
I looked for the cs doc but I can't found realtively rotating information.
This is possible?
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #1 on: February 12, 2006, 09:12:56 pm »

Use RotateOther() instead of RotateThis().

Greetings,
Logged
[SOM]Roberto
Jr. Member
**
Posts: 79


View Profile Email
« Reply #2 on: February 12, 2006, 09:55:32 pm »

Use RotateOther() instead of RotateThis().

Greetings,

It is great. thanks. Tongue
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 5.302 seconds with 15 queries.