Point intersection test
Posted: Tue Feb 22, 2011 1:21 pm
Hi Norbo,
is it somehow possible to check whether a point is inside a phyiscs entity?
Here is my current working code. Is there any overhead expect of the out params? Is this solution recommended?
Vector3 hitLocation;
Vector3 hitNormal;
float t;
bool isCameraInsideCone = Toolbox.RayCast(Camera.Position, Vector3.Zero, 1f, PhysicsEntity, PhysicsEntity.CollisionMargin, out hitLocation, out hitNormal, out t)
Thanks,
steko
is it somehow possible to check whether a point is inside a phyiscs entity?
Here is my current working code. Is there any overhead expect of the out params? Is this solution recommended?
Vector3 hitLocation;
Vector3 hitNormal;
float t;
bool isCameraInsideCone = Toolbox.RayCast(Camera.Position, Vector3.Zero, 1f, PhysicsEntity, PhysicsEntity.CollisionMargin, out hitLocation, out hitNormal, out t)
Thanks,
steko