SetStrength Property

Usage:
   ObjectTemplate.SetStrength number

Argument values:

argument 1:    range is 0 to 36; most commonly 0

Description: The Grip property makes the wheel roll as the vehicle moves (provided it's occupied) and the strength 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.

Related properties: Grip, HasCollisionPhysics, HasMobilePhysics, HasResponsePhysics, SetDamping

Used in object types (and how often in each type): Spring (72%)

Used in a total of 54 .con files: Physics.con

Parent directories of these .con files: objects/Vehicles, Bf1942/Levels

Example: (from objects/Vehicles/Air/Stuka/Physics.con)
   rem *** StukaWheelLeft ***
   ObjectTemplate.Create Spring StukaWheelLeft
   ObjectTemplate.Geometry Stuka_whe1_M1
   ObjectTemplate.HasMobilePhysics 1
   ObjectTemplate.HasCollisionPhysics 1
   ObjectTemplate.HasResponsePhysics 1
   ObjectTemplate.Grip c_PGFRollGripWhenOccupied
   rem -------------------------------------
   ObjectTemplate.AddTemplate e_WaterTouchPlane
   ObjectTemplate.AddTemplate e_wdustPlane
   ObjectTemplate.AddTemplate e_wdustPlaneL
   rem -------------------------------------
   ObjectTemplate.SetStrength 24
   ObjectTemplate.SetDamping 12


Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.