Jump to content

Can I somehow set the rotation/turn velocity of vehicles?


Recommended Posts

Hi there,

I cannot find any method how to set the rotation velocity of vehicles similar to:

mp.players.local.vehicle.setVelocity(vx, vy, vz);

Is there any way to do modify turn velocity like

mp.players.local.vehicle.setTurnVelocity(tvx, tvy, tvz);

this to give or remove spin velocity to vehicles?



Seems this will be my friend, but I cannot get it to work, any values I put have no effect to my vehicle...

void SET_OBJECT_PHYSICS_PARAMS(Object object, float mass, float gravityFactor,
  float dampingLinearC, float dampingLinearV, float dampingLinearV2,
  float dampingAngularC, float dampingAngularV, float dampingAngularV2,
  float margin, float default2Pi, float buoyancyFactor)
// 0xF6DF6E90DE7DF90F 0xE8D11C58

Any idea how I can invoke this native correctly?

Edited by materia
Additional info
Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...