ObjectTemplate.Grip

From Pilot_51's Wiki
Jump to: navigation, search

MDT description

This enables Spring objects (wheels) to grip the ground and use that traction to move the vehicle.

Grip takes pre-defined grip types, for example:

c_PGFEngineGrip - used in pairs, only for land vehicles (jeeps, tanks, etc). Triplets also work. This is the wheel driven by the engine. To have a true 4WD change c_PGFRollGrip to c_PGFEngineGrip in a front wheel drive object. WARNING, this can give a maximum of a 4WD; if you want more drive wheels use c_PGFEngineDummyGrip.

c_PGFEngineDummyGrip - again, used in pairs, only for land vehicles. Used for wheels that need to rotate when you move, but without any drive traction. Use in the tank or in an 8x8 when four wheels are already attached to the engine. The wheel rotates even though it does not have an effect. Ideal for the four outlying wheels of a tank (though not done this way in BF 1942, i.e., the tank wheels don't rotate).

c_PGFRollGrip - for wheeled vehicles. Used in jeeps, APCs, and the Katyusha truck.

c_PGFRollGripWhenOccupied - used in aircraft wheels, in triplets for planes (the three wheels). These wheels are free, they spin independently of the engine's settings.

The jeeps each have 2 c_PGFRollGrip for the front wheels and 2 c_PGFEngineGrip for the back.

The Grip property makes the wheel roll as the vehicle moves (provided it's occupied) and the strength (SetStrength) and damping (SetDamping) set the characteristics of the spring. A higher strength means increases the reaction of the spring, as it releases after being pushed in and the dampening smooths the motion a little. At high strength the vehicle tends to bounce in a jittery kind of fashion.

Source and more details

Additional Description