Vinnex89 Posted February 5, 2011 Share Posted February 5, 2011 Hi all I have a question how do i an object rotate around it yourself? I have an object, an arrow I put the object where I wanted, but it stays static and does not rotate... Uploaded with ImageShack.us if anyone knows.. thanks Link to comment https://gtaforums.com/topic/469062-making-object-rotate/ Share on other sites More sharing options...
MatiSk8 Posted February 5, 2011 Share Posted February 5, 2011 Try this opcode: 05A1: set_object 225@(224@,15i) rotation_velocity_about_an_axis 0.0 151@ 0.0 through_center_of_body Link to comment https://gtaforums.com/topic/469062-making-object-rotate/#findComment-1060326969 Share on other sites More sharing options...
Vinnex89 Posted February 6, 2011 Author Share Posted February 6, 2011 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 More sharing options...
BnB Posted February 6, 2011 Share Posted February 6, 2011 You must loop it. Link to comment https://gtaforums.com/topic/469062-making-object-rotate/#findComment-1060327415 Share on other sites More sharing options...
Deji Posted February 6, 2011 Share Posted February 6, 2011 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 More sharing options...
Vinnex89 Posted February 6, 2011 Author Share Posted February 6, 2011 Thank you all it worked the way I expected Link to comment https://gtaforums.com/topic/469062-making-object-rotate/#findComment-1060328520 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now