Class BulletRayTestManager
Evergine raycast callback.
Inherited Members
Namespace: Evergine.Bullet
Assembly: Evergine.Bullet.dll
Syntax
public class BulletRayTestManager
Constructors
BulletRayTestManager(BulletPhysicManager3D)
Initializes a new instance of the Bullet
Declaration
public BulletRayTestManager(BulletPhysicManager3D simulation)
Parameters
Type | Name | Description |
---|---|---|
Bullet |
simulation | The simulation. |
Fields
simulation
The simulation.
Declaration
protected BulletPhysicManager3D simulation
Field Value
Type | Description |
---|---|
Bullet |
Methods
AllConvexTest(BulletCollider3D, ref Matrix4x4, ref Matrix4x4, CollisionCategory3D, ICollection<HitResult3D>)
Process the raycast.
Declaration
public void AllConvexTest(BulletCollider3D castShape, ref Matrix4x4 from, ref Matrix4x4 to, CollisionCategory3D filterMask, ICollection<HitResult3D> resultList)
Parameters
Type | Name | Description |
---|---|---|
Bullet |
castShape | The shape to cast. |
Matrix4x4 | from | The from vector. |
Matrix4x4 | to | The to vector. |
Collision |
filterMask | The filter mask. |
ICollection<Hit |
resultList | The result. |
AllRaycast(ref Vector3, ref Vector3, CollisionCategory3D, ICollection<HitResult3D>)
Process the raycast.
Declaration
public void AllRaycast(ref Vector3 from, ref Vector3 to, CollisionCategory3D filterMask, ICollection<HitResult3D> resultList)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | from | The from vector. |
Vector3 | to | The to vector. |
Collision |
filterMask | The filter mask. |
ICollection<Hit |
resultList | The collection where the results will be included. |
ClosestConvexTest(BulletCollider3D, ref Matrix4x4, ref Matrix4x4, CollisionCategory3D, out HitResult3D)
Process the raycast.
Declaration
public void ClosestConvexTest(BulletCollider3D castShape, ref Matrix4x4 from, ref Matrix4x4 to, CollisionCategory3D filterMask, out HitResult3D result)
Parameters
Type | Name | Description |
---|---|---|
Bullet |
castShape | The shape to cast. |
Matrix4x4 | from | The from vector. |
Matrix4x4 | to | The to vector. |
Collision |
filterMask | The filter mask. |
Hit |
result | The result. |
ClosestRaycast(ref Vector3, ref Vector3, CollisionCategory3D, out HitResult3D)
Process the raycast.
Declaration
public void ClosestRaycast(ref Vector3 from, ref Vector3 to, CollisionCategory3D filterMask, out HitResult3D result)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | from | The from vector. |
Vector3 | to | The to vector. |
Collision |
filterMask | The filter mask. |
Hit |
result | The result. |
FillHitResult(BulletRaycastResult*, bool, out HitResult3D)
Fill hit info struct.
Declaration
protected void FillHitResult(BulletRaycastResult* rayResult, bool normalInWorldSpace, out HitResult3D result)
Parameters
Type | Name | Description |
---|---|---|
Bullet |
rayResult | The ray result. |
bool | normalInWorldSpace | The normal in world space. |
Hit |
result | The hit result. |