SetSolid()

From Valve Developer Community
Revision as of 09:17, 3 September 2009 by TomEdwards (talk | contribs) (Created page with ''''<code>SetSolid()</code>''' defines the manner in which collisions between this entity and others are handled. <code>SetSolidFlags()</code> can be used to tweak behaviour f…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SetSolid() defines the manner in which collisions between this entity and others are handled. SetSolidFlags() can be used to tweak behaviour further.

SolidTypes

SOLID_NONE
The entity does not collide with other entities. It does still collide with the world.
Todo: Any different from FSOLID_NOT_SOLID?
SOLID_BSP
The entity has a brush model.
SOLID_BBOX
The entity collides with an axis-aligned bounding box. Required for hitbox tests.
SOLID_OBB
SOLID_OBB_YAW
Icon-Bug.pngBug:"Not implemented yet".  [todo tested in ?]
The entity collides with an object-aligned bounding box. OBB_YAW restricts orientation to Z-axis.
SOLID_CUSTOM
A function on the entity is called to handle collisions.
Todo: Which?
SOLID_VPHYSICS
Use VPhysics for collisions. Call VPhysicsInitNormal() or VPhysicsInitShadow() if you use this!

See also