HasCollisionPhysics Property

Usage:
   ObjectTemplate.HasCollisionPhysics boolean

Argument values:

argument 1:    0, 1; most commonly 1

Description: Set this to true (1) to signal that this object can collide with other objects. When set, the geometry mesh associated with this object must have at least one collision mesh (see the Damage Tutorial). The property SetHasCollisionPhysics is another name for this property.

The HasResponsePhysics is often set in tandem with this property.

Used in object types (and how often in each type): Bundle (48%), ClusterProjectile (100%), ControlPoint (94%), Emitter (1%), Engine (33%), FireArms (1%), FlagBase (38%), Hook (13%), Kit (41%), LandingGear (64%), LodObject (28%), ObjectSpawner (1%), Obstacle (60%), PlayerControlObject (47%), Projectile (95%), RotationalBundle (32%), Spring (100%), WireLink (100%), simpleobject (18%)

Used in a total of 893 .con files: Commonsoldierdata.inc, Controlpointtemplates.con, Effects.con, Objects.con, Physics.con, Projectile.con, Weapons.con

Parent directories of these .con files: objects/Vehicles, objects/Stationary_Weapons, objects/Soldiers, objects/Objectives, objects/MOVE_FILES, objects/HandWeapons, objects/Effects, objects/Buildings, Bf1942/Levels

Example: (from objects/Vehicles/Air/HO229/Physics.con)
   rem *** HO229Wheel_Left ***
   ObjectTemplate.Create Spring HO229Wheel_Left
   ObjectTemplate.Geometry HO229_wheel_left_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
   ObjectTemplate.AddTemplate e_wdustPlaneF
   rem -------------------------------------
   ObjectTemplate.SetStrength 24
   ObjectTemplate.SetDamping 12


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