Class MotionController
Inheritance
MotionController
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: NeoFPS.dll
Syntax
public class MotionController : MonoBehaviour, IMotionController, ICharacterStepTracker, INeoSerializableComponent
Properties
aimController
Declaration
public IAimController aimController { get; }
Property Value
bodyAnimator
Declaration
public Animator bodyAnimator { get; }
Property Value
| Type |
Description |
| Animator |
|
characterController
Declaration
public INeoCharacterController characterController { get; }
Property Value
currentHeight
Declaration
public float currentHeight { get; }
Property Value
| Type |
Description |
| System.Single |
|
currentHeightNormalised
Declaration
public float currentHeightNormalised { get; }
Property Value
| Type |
Description |
| System.Single |
|
currentState
Declaration
public MotionGraphState currentState { get; }
Property Value
groundAcrossSlopeVector
Declaration
public Vector3 groundAcrossSlopeVector { get; }
Property Value
groundDownSlopeVector
Declaration
public Vector3 groundDownSlopeVector { get; }
Property Value
groundSlopeAngle
Declaration
public float groundSlopeAngle { get; }
Property Value
| Type |
Description |
| System.Single |
|
Declaration
public Vector2 inputMoveDirection { get; set; }
Property Value
Declaration
public float inputMoveScale { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
isLocal
Declaration
public bool isLocal { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public Transform localTransform { get; }
Property Value
| Type |
Description |
| Transform |
|
maxStepRate
Declaration
public float maxStepRate { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
motionGraph
Declaration
public MotionGraphContainer motionGraph { get; }
Property Value
rootMotionDamping
Declaration
public float rootMotionDamping { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
rootMotionHandler
Declaration
public IRootMotionHandler rootMotionHandler { get; }
Property Value
rootMotionPositionMultiplier
Declaration
public float rootMotionPositionMultiplier { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
rootMotionRotationMultiplier
Declaration
public float rootMotionRotationMultiplier { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
rootMotionStrength
Declaration
public float rootMotionStrength { get; }
Property Value
| Type |
Description |
| System.Single |
|
smoothedStepRate
Declaration
public float smoothedStepRate { get; }
Property Value
| Type |
Description |
| System.Single |
|
stepCounter
Declaration
public float stepCounter { get; }
Property Value
| Type |
Description |
| System.Single |
|
strideLength
Declaration
public float strideLength { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
Methods
Awake()
Declaration
protected virtual void Awake()
ChangeStandingHeight(Single)
Declaration
public void ChangeStandingHeight(float height)
Parameters
| Type |
Name |
Description |
| System.Single |
height |
|
CheckIsHeightMultiplierRestricted(Single)
Declaration
public bool CheckIsHeightMultiplierRestricted(float multiplier)
Parameters
| Type |
Name |
Description |
| System.Single |
multiplier |
|
Returns
| Type |
Description |
| System.Boolean |
|
GetHeightMultiplier()
Declaration
public float GetHeightMultiplier()
Returns
| Type |
Description |
| System.Single |
|
ManualInitialise(Boolean)
Declaration
public void ManualInitialise(bool local)
Parameters
| Type |
Name |
Description |
| System.Boolean |
local |
|
OnDestroy()
Declaration
protected void OnDestroy()
ReadProperties(INeoDeserializer, NeoSerializedGameObject)
Declaration
public void ReadProperties(INeoDeserializer reader, NeoSerializedGameObject nsgo)
Parameters
SetHeightMultiplier(Single, Single, CharacterResizePoint)
Declaration
public void SetHeightMultiplier(float multiplier, float duration, CharacterResizePoint point = CharacterResizePoint.Automatic)
Parameters
SetRootMotionStrength(Single, Single)
Declaration
public void SetRootMotionStrength(float strength, float blendTime)
Parameters
| Type |
Name |
Description |
| System.Single |
strength |
|
| System.Single |
blendTime |
|
SetWholeStep()
Declaration
public void SetWholeStep()
Start()
Declaration
protected virtual void Start()
Update()
Declaration
WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)
Declaration
public void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
Parameters
Events
onBodyImpact
Declaration
public event UnityAction<Vector3> onBodyImpact
Event Type
| Type |
Description |
| UnityAction<Vector3> |
|
onCurrentStateChanged
Declaration
public event UnityAction onCurrentStateChanged
Event Type
| Type |
Description |
| UnityAction |
|
onDestroy
Declaration
public event MotionController.OnDestroyDelegate onDestroy
Event Type
onGroundImpact
Declaration
public event UnityAction<Vector3> onGroundImpact
Event Type
| Type |
Description |
| UnityAction<Vector3> |
|
onHeadImpact
Declaration
public event UnityAction<Vector3> onHeadImpact
Event Type
| Type |
Description |
| UnityAction<Vector3> |
|
onStep
Declaration
public event UnityAction onStep
Event Type
| Type |
Description |
| UnityAction |
|
onTick
Declaration
public event MotionController.OnTickDelegate onTick
Event Type
Implements