Alessandro Posted September 10, 2010 Share Posted September 10, 2010 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! Quote Link to comment Share on other sites More sharing options...
macklebee Posted September 10, 2010 Share Posted September 10, 2010 have you tried body:SetMassCenter(center)? Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Recommended Posts
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.