materia

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?

 

Edit:

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.