HitResult Struct
Namespace: Stride.PhysicsAssembly: Stride.Physics.dll
The result of a Physics Raycast or ShapeSweep operation
public struct HitResult
| Name | Description | |
|---|---|---|
| Fields | ||
| Collider | The Collider hit if Succeeded |
|
| HitFraction | ||
| Normal | ||
| Point | ||
| Succeeded | ||
Fields
Collider
The Collider hit if Succeeded
public PhysicsComponent Collider
Field Value
| Type | Description |
|---|---|
| PhysicsComponent |
HitFraction
public float HitFraction
Field Value
| Type | Description |
|---|---|
| System.Single |
Normal
public Vector3 Normal
Field Value
| Type | Description |
|---|---|
| Vector3 |
Point
public Vector3 Point
Field Value
| Type | Description |
|---|---|
| Vector3 |
Succeeded
public bool Succeeded
Field Value
| Type | Description |
|---|---|
| System.Boolean |
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()