DefaultCollision¶
Warning
This documentation is for an implementation of a service. This class is not meant to be used directly; instead use the ICollision service via dependency injection to access this functionality.
Information documented here may not be up to date.
-
class
DefaultCollision
: System.Object, ICollision The default implementation of T:Protogame.ICollision.
-
public System.Nullable<Vector3>
CollidesWithTriangle
(Ray ray, Microsoft.Xna.Framework.Vector3[] trianglePoints, ref float distance, bool testCulling) Parameters: - ray (Microsoft.Xna.Framework.Ray) –
- trianglePoints (Microsoft.Xna.Framework.Vector3[]) –
- (ref) distance (float) –
- testCulling (bool) –
-
public System.Nullable<Vector3>
CollidesWithTriangle
(Ray ray, Vector3 vert0, Vector3 vert1, Vector3 vert2, ref float distance, bool testCulling) Parameters: - ray (Microsoft.Xna.Framework.Ray) –
- vert0 (Microsoft.Xna.Framework.Vector3) –
- vert1 (Microsoft.Xna.Framework.Vector3) –
- vert2 (Microsoft.Xna.Framework.Vector3) –
- (ref) distance (float) –
- testCulling (bool) –
-
public System.Nullable<Vector3>