Interface IMotionController
Assembly: NeoFPS.dll
Syntax
public interface IMotionController
Properties
aimController
Declaration
IAimController aimController { get; }
Property Value
bodyAnimator
Declaration
Animator bodyAnimator { get; }
Property Value
| Type |
Description |
| Animator |
|
characterController
Declaration
INeoCharacterController characterController { get; }
Property Value
currentState
Declaration
MotionGraphState currentState { get; }
Property Value
gameObject
Declaration
GameObject gameObject { get; }
Property Value
| Type |
Description |
| GameObject |
|
Declaration
Vector2 inputMoveDirection { get; set; }
Property Value
Declaration
float inputMoveScale { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
Declaration
Transform localTransform { get; }
Property Value
| Type |
Description |
| Transform |
|
motionGraph
Declaration
MotionGraphContainer motionGraph { get; }
Property Value
rootMotionDamping
Declaration
float rootMotionDamping { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
rootMotionHandler
Declaration
IRootMotionHandler rootMotionHandler { get; }
Property Value
rootMotionPositionMultiplier
Declaration
float rootMotionPositionMultiplier { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
rootMotionRotationMultiplier
Declaration
float rootMotionRotationMultiplier { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
rootMotionStrength
Declaration
float rootMotionStrength { get; }
Property Value
| Type |
Description |
| System.Single |
|
Declaration
Transform transform { get; }
Property Value
| Type |
Description |
| Transform |
|
Methods
ChangeStandingHeight(Single)
Declaration
void ChangeStandingHeight(float height)
Parameters
| Type |
Name |
Description |
| System.Single |
height |
|
CheckIsHeightMultiplierRestricted(Single)
Declaration
bool CheckIsHeightMultiplierRestricted(float multiplier)
Parameters
| Type |
Name |
Description |
| System.Single |
multiplier |
|
Returns
| Type |
Description |
| System.Boolean |
|
GetComponent(Type)
Declaration
Component GetComponent(Type t)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
Returns
| Type |
Description |
| Component |
|
GetComponent<T>()
Declaration
Returns
Type Parameters
GetComponentInChildren(Type)
Declaration
Component GetComponentInChildren(Type t)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
Returns
| Type |
Description |
| Component |
|
GetComponentInChildren<T>()
Declaration
T GetComponentInChildren<T>()
Returns
Type Parameters
GetComponentInParent(Type)
Declaration
Component GetComponentInParent(Type t)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
Returns
| Type |
Description |
| Component |
|
GetComponentInParent<T>()
Declaration
T GetComponentInParent<T>()
Returns
Type Parameters
GetComponents(Type)
Declaration
Component[] GetComponents(Type t)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
Returns
| Type |
Description |
| Component[] |
|
GetComponents<T>()
Declaration
Returns
Type Parameters
GetComponentsInChildren(Type, Boolean)
Declaration
Component[] GetComponentsInChildren(Type t, bool includeInactive = false)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
| System.Boolean |
includeInactive |
|
Returns
| Type |
Description |
| Component[] |
|
GetComponentsInChildren<T>(Boolean)
Declaration
T[] GetComponentsInChildren<T>(bool includeInactive = false)
Parameters
| Type |
Name |
Description |
| System.Boolean |
includeInactive |
|
Returns
Type Parameters
GetComponentsInParent(Type, Boolean)
Declaration
Component[] GetComponentsInParent(Type t, bool includeInactive = false)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
| System.Boolean |
includeInactive |
|
Returns
| Type |
Description |
| Component[] |
|
GetComponentsInParent<T>(Boolean)
Declaration
T[] GetComponentsInParent<T>(bool includeInactive = false)
Parameters
| Type |
Name |
Description |
| System.Boolean |
includeInactive |
|
Returns
Type Parameters
GetHeightMultiplier()
Declaration
float GetHeightMultiplier()
Returns
| Type |
Description |
| System.Single |
|
SetHeightMultiplier(Single, Single, CharacterResizePoint)
Declaration
void SetHeightMultiplier(float multiplier, float duration, CharacterResizePoint point = CharacterResizePoint.Automatic)
Parameters
SetRootMotionStrength(Single, Single)
Declaration
void SetRootMotionStrength(float strength, float blendTime)
Parameters
| Type |
Name |
Description |
| System.Single |
strength |
|
| System.Single |
blendTime |
|
Events
onCurrentStateChanged
Declaration
event UnityAction onCurrentStateChanged
Event Type
| Type |
Description |
| UnityAction |
|