The character movement controller. More...
Public Member Functions | |
void | SetSpeedMultiplier (float speedMultiplier) |
Sets the character speed multiplier. | |
void | SetJumpMultiplier (float jumpMultiplier) |
Sets the character jump multiplier. | |
void | AddForceToBody (Vector3 force, ForceMode forceMode) |
Adds for to the player body. | |
void | SetRotation (float hipRotation, float chestRotation) |
Sets the character animation rotation. | |
void | SetPlayerPosition (Vector3 position) |
Sets the character position. | |
void | SetPlayerRotation (Quaternion rotation) |
Sets the character rotation. | |
void | SetPlayerPositionAndRotation (Vector3 position, Quaternion rotation, bool bResetVelocity=true) |
Sets the character position rotation and whether to reset it's velocity. | |
![]() | |
void | RegisterRPCs (ModNetworkObject networkObject) |
Called when you should register rpcs. | |
void | NetworkStart (ModNetworkObject networkObject) |
Called when this object is ready on the network. | |
void | NetworkPost (ModNetworkObject networkObject) |
Called after fully initalized the network. | |
GameObject | GetGameObject () |
Returns the gameobject of this object. | |
void | RegisterRPCs (ModNetworkObject networkObject) |
Called when you should register rpcs. | |
void | NetworkStart (ModNetworkObject networkObject) |
Called when this object is ready on the network. | |
void | NetworkPost (ModNetworkObject networkObject) |
Called after fully initalized the network. | |
GameObject | GetGameObject () |
Returns the gameobject of this object. | |
Additional Inherited Members | |
![]() | |
ModNetworkObject | modNetworkObject |
![]() | |
virtual void | Awake () |
virtual void | Start () |
virtual void | OnDestroy () |
virtual void | ModAwake () |
virtual void | ModStart () |
virtual void | ModOnDestroy () |
virtual void | ModRegisterRPCs (ModNetworkObject modNetworkObject) |
virtual void | ModNetworkStart (ModNetworkObject modNetworkObject) |
virtual void | ModNetworkPost (ModNetworkObject modNetworkObject) |
The character movement controller.
void ModWobblyLife.ModPlayerCharacterMovement.AddForceToBody | ( | Vector3 | force, |
ForceMode | forceMode | ||
) |
Adds for to the player body.
force | |
forceMode |
void ModWobblyLife.ModPlayerCharacterMovement.SetJumpMultiplier | ( | float | jumpMultiplier | ) |
Sets the character jump multiplier.
jumpMultiplier |
void ModWobblyLife.ModPlayerCharacterMovement.SetPlayerPosition | ( | Vector3 | position | ) |
Sets the character position.
position |
void ModWobblyLife.ModPlayerCharacterMovement.SetPlayerPositionAndRotation | ( | Vector3 | position, |
Quaternion | rotation, | ||
bool | bResetVelocity = true |
||
) |
Sets the character position rotation and whether to reset it's velocity.
position | |
rotation | |
bResetVelocity |
void ModWobblyLife.ModPlayerCharacterMovement.SetPlayerRotation | ( | Quaternion | rotation | ) |
Sets the character rotation.
rotation |
void ModWobblyLife.ModPlayerCharacterMovement.SetRotation | ( | float | hipRotation, |
float | chestRotation | ||
) |
Sets the character animation rotation.
hipRotation | |
chestRotation |
void ModWobblyLife.ModPlayerCharacterMovement.SetSpeedMultiplier | ( | float | speedMultiplier | ) |
Sets the character speed multiplier.
speedMultiplier |