vphysics/physics_object.cpp
void CPhysicsObject::WorldToLocal( Vector *localPosition, const Vector &worldPosition ) const
{
	matrix3x4_t matrix;
	GetPositionMatrix( &matrix );
	// copy in case the src == dest
	VectorITransform( Vector(worldPosition), matrix, *localPosition );
}
// Converts world HL units to HL local/object units
Converts world HL units to HL local/object units
Converts world HL units to HL local / object units
void CPhysicsObject::WorldToLocal( Vector *localPosition, const Vector &worldPosition ) const
{
	matrix3x4_t matrix;
	GetPositionMatrix( &matrix );
	VectorITransform( Vector(worldPosition), matrix, *localPosition );
}
void CPhysicsObject :: WorldToLocal ( Vector * localPosition , const Vector & worldPosition ) const { matrix3x4_t matrix ; GetPositionMatrix ( & matrix ) ; VectorITransform ( Vector ( worldPosition ) , matrix , * localPosition ) ; }
Converts world HL units to HL local/object units
Converts world HL units to HL local / object units
// copy in case the src == dest