Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Alert23

spin object around y axis

Recommended Posts

hi,

is there a way i can spin an object around it's y axis?

it must be:

_obj setVectorUp [0,y,0];

how could i make a while loop to spin an object around its y axis continuously?

Share this post


Link to post
Share on other sites

Let say you want to spin a Hunter on y-axis (why not?)

- disable simulation on it (worth for all physx objects falling under gravity)

- give it some altitude (because the axis is not exactly centered and the shape is not a cylinder, so you don't want the object grab the ground.

- in init field (for quick example): 0 = this spawn {while {alive _this} do {sleep 0.01; [_this,0,time*100 mod 360] call BIS_fnc_setPitchBank;}};

 

 

  • Like 2

Share this post


Link to post
Share on other sites

×