Dynamic Mass
by Ronald J Nelson · in Torque Game Engine Advanced · 02/29/2008 (5:27 pm) · 1 replies
I wanted to see if someone had done this already. I need to be able to change the mass of my vehicles based upon different things I am going to add on or mount to it. Since I want this to include weapons and I don't believe shapebaseimages use mass, its kind of important to me. But I am also going to be adding things that are just a variable or two that would be like armor points for example, the more armor you add, the heavier the car should be.
I would really appreciate it if someone could help me out a bit on this one.
I would really appreciate it if someone could help me out a bit on this one.
Torque 3D Owner Peter Simard
Default Studio Name
Any place it's accessing the mass field of the datablock, change it to a function: getVehicleMass(). In that function, take the base mass of the vehicle, and add on anything you need to.