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 BulletRayTestManager class.
Declaration
public BulletRayTestManager(BulletPhysicManager3D simulation)
Parameters
Type | Name | Description |
---|---|---|
BulletPhysicManager3D | simulation | The simulation. |
Fields
simulation
The simulation.
Declaration
protected BulletPhysicManager3D simulation
Field Value
Type | Description |
---|---|
BulletPhysicManager3D |
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 |
---|---|---|
BulletCollider3D | castShape | The shape to cast. |
Matrix4x4 | from | The from vector. |
Matrix4x4 | to | The to vector. |
CollisionCategory3D | filterMask | The filter mask. |
ICollection<HitResult3D> | 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. |
CollisionCategory3D | filterMask | The filter mask. |
ICollection<HitResult3D> | 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 |
---|---|---|
BulletCollider3D | castShape | The shape to cast. |
Matrix4x4 | from | The from vector. |
Matrix4x4 | to | The to vector. |
CollisionCategory3D | filterMask | The filter mask. |
HitResult3D | 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. |
CollisionCategory3D | filterMask | The filter mask. |
HitResult3D | 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 |
---|---|---|
BulletRaycastResult* | rayResult | The ray result. |
bool | normalInWorldSpace | The normal in world space. |
HitResult3D | result | The hit result. |