Struct HitResult3D
3D hit result.
Namespace: Evergine.Framework.Physics3D
Assembly: Evergine.Framework.dll
Syntax
public struct HitResult3D
Fields
Collider
The collider shape.
Declaration
public IColliderShape3D Collider
Field Value
Type | Description |
---|---|
IColliderShape3D |
HitFraction
The fraction.
Declaration
public float HitFraction
Field Value
Type | Description |
---|---|
float |
Normal
The normal of the ray hit.
Declaration
public Vector3 Normal
Field Value
Type | Description |
---|---|
Vector3 |
PhysicBody
The physical body.
Declaration
public IPhysicBody3D PhysicBody
Field Value
Type | Description |
---|---|
IPhysicBody3D |
Point
The origin point of the ray.
Declaration
public Vector3 Point
Field Value
Type | Description |
---|---|
Vector3 |
Succeeded
True if this event occurs.
Declaration
public bool Succeeded
Field Value
Type | Description |
---|---|
bool |
TriangleIndex
Triangle index in the case of a Mesh Collider.
Declaration
public int TriangleIndex
Field Value
Type | Description |
---|---|
int |