Crystal Space
Welcome,
Guest
. Please
login
or
register
.
June 20, 2013, 01:31:47 pm
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
9262
Posts in
2263
Topics by
5444
Members
Latest Member:
Summonermw2
Crystal Space
Crystal Space Development
General Crystal Space Discussion
Rotating a sprite relatively
« previous
next »
Pages:
[
1
]
Author
Topic: Rotating a sprite relatively (Read 1685 times)
[SOM]Roberto
Jr. Member
Posts: 79
Rotating a sprite relatively
«
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: 1703
Re: Rotating a sprite relatively
«
Reply #1 on:
February 12, 2006, 09:12:56 pm »
Use RotateOther() instead of RotateThis().
Greetings,
Logged
[SOM]Roberto
Jr. Member
Posts: 79
Re: Rotating a sprite relatively
«
Reply #2 on:
February 12, 2006, 09:55:32 pm »
Quote from: jorrit on February 12, 2006, 09:12:56 pm
Use RotateOther() instead of RotateThis().
Greetings,
It is great. thanks.
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Crystal Space Development
-----------------------------
=> General Crystal Space Discussion
=> Support
-----------------------------
Crystal Space Project Development
-----------------------------
=> Feature Requests
=> Plugins
=> Bug Reports
-----------------------------
Crystal Space Development
-----------------------------
=> Game Content Creation
-----------------------------
Miscellaneous
-----------------------------
=> Article/Tutorial Requests
=> Article/Tutorial Discussion
-----------------------------
Crystal Space Project Development
-----------------------------
=> Development Discussion
-----------------------------
Crystal Space Projects
-----------------------------
=> Project Discussion
=> WIP Projects
=> Finished Projects
-----------------------------
Associate Projects
-----------------------------
=> CEL Discussion
=> Crystal Core Discussion
=> CrystalBlend Discussion
-----------------------------
Crystal Space Project Development
-----------------------------
=> Google Summer of Code
-----------------------------
Associate Projects
-----------------------------
=> Apricot (Open Game)
=> Ares Project
Loading...