GetCollisionBounds

From Valve Developer Community
Revision as of 22:03, 22 July 2006 by Ts2do (talk | contribs) (boldiness...no glossary)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This function does not actually exist but is a combination of 2 functions.

const Vector& CCollisionProperty::OBBMins( ) const

This function returns the lowest right point of the collisionhull. It's callable via C_BaseEntity::CollisionProp()->OBBMins()

const Vector& CCollisionProperty::OBBMaxs( ) const

This function returns the highest left point of the collisionhull. It's callable via C_BaseEntity::CollisionProp()->OBBMaxs()

void CCollisionProperty::GetCollisionBounds( const Vector& mins, const Vector &maxs )

void CCollisionProperty::GetCollisionBounds( const Vector& mins, const Vector &maxs )
{
	mins = CollisionProp()->OBBMins();
	maxs = CollisionProp()->OBBMaxs();
}