Jump to content

Making object rotate


Recommended Posts

MatiSk8, with this code the object has moved but do not know for what reason after a while it stops. perhaps some parameter that should be informed that the object is in motion without stopping?

 

my code to create the object:

 

 

1@ = Object.Create(1318, 2117.483, 897.48, 11.17969)Object.CollisionDetection(1@) = False07C4: set_object 1@ axis_angle_relation_to 26 226 0 005A1: set_object 1@ rotation_velocity_about_an_axis 0.0 0.0 15.0 through_center_of_body

 

 

thanks

Link to comment
https://gtaforums.com/topic/469062-making-object-rotate/#findComment-1060327110
Share on other sites

Best to promote the standard methods...

 

 

// 0@ = object// 1@ = rotation:RotateLoopwait 00177: set_object 0@ Z_angle_to 1@000B: 1@ += 0.1  // alter this to change the speed of the spinjump @RotateLoop

 

 

If an object has different rotation axes, you can use 0453.

Link to comment
https://gtaforums.com/topic/469062-making-object-rotate/#findComment-1060328057
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.