Jump to content

How to change CENTER OF MASS of a vehicle?


Alessandro
 Share

Recommended Posts

Hello,

 

I need to change the center of mass of a vehicle, but I cannot find any way.

I tried using SetCenterOfMass() function, but the engine crashes!

In LUA script of viper there are some items like:

 

object.model:SetKey('collisiontype', COLLISION_PROP)
object.model:SetKey('mass', DEFAULT_VEHICLE_MASS)

 

So it seems some parameters are passed to the physics engine via KEYS, but is there any way to supply the center of mass?

 

Thank you for your help!

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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.

 Share

×
×
  • Create New...