Rotating object while moving
#1

How I can make object to rotate while moving?

I tryed like this:

Код:
new grass;
grass = CreateObject(702,-172.7709,1688.5282,16.3303, 0, 0, 0, 300.00);
MoveObject(grass, -180.6491, 1685.0883, 17.5278, 0.0, -360.0000, 0.0, 2.0);
Object need to be moved to this coordinates 180.6491, 1685.0883, 17.5278 .
Reply
#2

Format for MoveObject is as follows
PHP код:
(objectidFloat:XFloat:YFloat:ZFloat:SpeedFloat:RotX = -1000.0Float:RotY = -1000.0Float:RotZ = -1000.0
You just have to change in your code the -360.0000, 0.0, 2.0); part with the rotation you want it to be.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)