Class KCCBounce
Data structure describing a bounce of the KCC when moving throughout a scene.
Namespace: nickmaltbie.OpenKCC.Utils
Assembly: cs.temp.dll.dll
Syntax
public class KCCBounce
Fields
action
Action that ocurred during this bounce.
Declaration
public KCCUtils.MovementAction action
Field Value
Type | Description |
---|---|
KCCUtils.MovementAction |
finalPosition
Final position once finishing this bounce.
Declaration
public Vector3 finalPosition
Field Value
Type | Description |
---|---|
Vector3 |
hit
Collision data associated with the bounce.
Declaration
public IRaycastHit hit
Field Value
Type | Description |
---|---|
IRaycastHit |
initialMomentum
Initial momentum when starting the move.
Declaration
public Vector3 initialMomentum
Field Value
Type | Description |
---|---|
Vector3 |
initialPosition
Initial position before moving.
Declaration
public Vector3 initialPosition
Field Value
Type | Description |
---|---|
Vector3 |
remainingMomentum
Remaining momentum after this bounce.
Declaration
public Vector3 remainingMomentum
Field Value
Type | Description |
---|---|
Vector3 |
Properties
Movement
Get the movement of a vector (from initial position to final position).
Declaration
public Vector3 Movement { get; }
Property Value
Type | Description |
---|---|
Vector3 |
Methods
ToString()
Data structure describing a bounce of the KCC when moving throughout a scene.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |