$collisionmodel

From Valve Developer Community
Revision as of 19:43, 7 November 2007 by Beeswax (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

$collisionmodel options

$mass
  • Manually set the mass of the model
$automass
  • Tell the physics system to compute a mass for the model, based on it's surfaceprops & volume
$inertia
  • Inertia scale
$damping
  • Linear damping scale
$rotdamping
  • Rotational damping scale
$drag
  • Scales the air resistance
$concave
  • The vphysics collision model is not a single convex hull. If not set, it'll make a single convex hull out of whatever geometry you give it.
$masscenter
  • Override the center of mass, in local coords
$jointskip
  • Rarely used. Eliminates a joint in the collision model that you don't want to use. (i.e. if you were using a render model as a ragdoll, and it has bones you don't want)
$jointmerge
  • Merges the vertex assignments for two joints.
$rootbone
  • The parent-most bone that actually has collision geometry.
$jointconstrain
  • The limits of the joint's movement
$jointinertia
  • Like $inertia, but per-bone
$jointdamping
  • Like $damping, but per-bone
$jointrotdamping
  • Like $rotdamping, but per-bone
$jointmassbias
  • Mass is automatically distributed by volume, this lets you bias it per-bone
$noselfcollisions
  • Turns off all collisions between bones in this model, usually for performance.
$jointcollide
  • If any $jointcollide pairs are specified, only those joints collide with each other.
$animatedfriction
  • Used to animate the amount of friction on joints over time.