Quote:
Originally Posted by Arkshine
Not sure to fully understand, but to rotate an entity, generally you would use pev_avelocity.
|
If i use ANGLES, the entity rotates on a circle to say like that. It orbits an axis that isn't the middle of the entity to say like that.
I want to rotate the entity, to orbit around his origin.
I'll try pev_avelocity.
LE : With :
PHP Code:
public rotatePropeller( id )
{
new i = ePropeller[id];
if( i != 0 )
{
new Float:a[3];
pev( i, pev_avelocity, a );
a[1] -= 1.0;
set_pev( i, pev_avelocity, a);
}
}
= nothing.
Yes, with EV_VEC_angles it's rotating but the origin is changed with each += 1.0 ... i want to stay in that origin and just rotate with angle..
LE2 ; To explain better, il took the solar system.
For example : The earth is rotating around his axis.
But the earth is rotating too around the sun.
So : The rotation with EV_VEC_angles it's just like the Earth around the Sun. I just want to rotate the entity around his axis( like the Earth around his axis ).
__________________