Modular First Person Player 1.0.2.7
Loading...
Searching...
No Matches
MFPP.Modules.BobModule Class Reference

Public Member Functions

override void AfterUpdate ()
 Called right after updating the player.
 
- Public Member Functions inherited from MFPP.PlayerModule
virtual void Initialize ()
 Used for initialization.
 
virtual void BeforeUpdate ()
 Called right before updating the player.
 

Public Attributes

float BobAmplitude = 0.1f
 The amplitude of the bobbing.
 
float BobSpeed = 3f
 The speed of the bobbing.
 
AnimationCurve BobX = AnimationCurve.Constant(0, 1, 0)
 The X axis animation curve of the bobbing.
 
AnimationCurve BobY = AnimationCurve.Constant(0, 1, 0)
 The Y axis animation curve of the bobbing.
 
float LandingBobAmplitude = 5f
 The amplitude of the landing bob.
 
float LandingBobSpeed = 2f
 The speed recover of the landing bob.
 
float LandingBobLerpSpeed = 5f
 The speed recover lerp (smoothing) of the landing bob.
 

Additional Inherited Members

- Protected Member Functions inherited from MFPP.PlayerModule
float GetAxis (string axisName)
 Similar to Input.GetAxis(string) but also taking into account MFPP.Player.ControlSettings.ControlsEnabled.
 
float GetAxisRaw (string axisName)
 Similar to Input.GetAxisRaw(string) but also taking into account MFPP.Player.ControlSettings.ControlsEnabled.
 
float GetCurrentAxis (string axisName)
 Returns the current axis value, based on whetever we use MFPP.Player.ControlSettings.RawInput and also taking into account MFPP.Player.ControlSettings.ControlsEnabled.
 
bool GetButton (string buttonName)
 Similar to Input.GetButton(string) but also taking into account MFPP.Player.ControlSettings.ControlsEnabled.
 
bool GetButtonDown (string buttonName)
 Similar to Input.GetButtonDown(string) but also taking into account MFPP.Player.ControlSettings.ControlsEnabled.
 
- Properties inherited from MFPP.PlayerModule
bool Enabled [get, set]
 Is this PlayerModule enabled?
 
int ExecutionOrder [get, set]
 The execution order of this PlayerModule, lower means earlier execution.
 
Player Player [get]
 The attached global::Player to this PlayerModule.
 
Camera Camera [get]
 The attached camera to this Player. Shortcut equivalent of "Player.Main.Camera".
 

Member Function Documentation

◆ AfterUpdate()

override void MFPP.Modules.BobModule.AfterUpdate ( )
virtual

Called right after updating the player.

Reimplemented from MFPP.PlayerModule.


The documentation for this class was generated from the following file: