GetCollisionBounds

From Valve Developer Community
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();
}