VR Interaction Framework v2.0
Loading...
Searching...
No Matches
BNG.SmoothLocomotion Class Reference
Inheritance diagram for BNG.SmoothLocomotion:

Public Member Functions

delegate void OnBeforeMoveAction ()
 
delegate void OnAfterMoveAction ()
 
virtual void Update ()
 
virtual void FixedUpdate ()
 
virtual void CheckControllerReferences ()
 
virtual void UpdateInputs ()
 
virtual void DoRigidBodyJump ()
 
virtual Vector2 GetMovementAxis ()
 
virtual void MoveCharacter ()
 
virtual void MoveRigidCharacter (Vector3 moveTo)
 
virtual void MoveRigidCharacter ()
 
virtual void MoveCharacter (Vector3 motion)
 
virtual bool CheckJump ()
 
virtual bool CheckSprint ()
 
virtual bool IsGrounded ()
 
virtual void SetupCharacterController ()
 
virtual void SetupRigidbodyPlayer ()
 
virtual void EnableMovement ()
 
virtual void DisableMovement ()
 

Public Attributes

PlayerControllerType ControllerType = PlayerControllerType.CharacterController
 
float MovementSpeed = 1.25f
 
float MovementForce = 500f
 
float MaxHorizontalVelocity = 5f
 
float MaxVerticalVelocity = 10f
 
float StepHeight = 0.1f
 
float MaxSlopeAngle = 45f
 
PhysicMaterial MovementMaterial
 
PhysicMaterial FrictionMaterial
 
float MovementDrag = 1f
 
float StaticDrag = 5f
 
float AirDrag = 1f
 
Transform ForwardDirection
 
bool AllowInput = true
 
bool UpdateMovement = true
 
List< InputAxisinputAxis = new List<InputAxis>() { InputAxis.LeftThumbStickAxis }
 
InputActionReference MoveAction
 
bool RequireAppFocus = true
 
float SprintSpeed = 1.5f
 
List< ControllerBindingSprintInput = new List<ControllerBinding>() { ControllerBinding.None }
 
InputActionReference SprintAction
 
float StrafeSpeed = 1f
 
float StrafeSprintSpeed = 1.25f
 
float JumpForce = 3f
 
List< ControllerBindingJumpInput = new List<ControllerBinding>() { ControllerBinding.None }
 
InputActionReference JumpAction
 
bool AirControl = true
 
float AirControlSpeed = 1f
 
float Magnitude
 
int GroundContacts = 0
 
float SurfaceAngle = 0f
 
float SurfaceHeight = 0f
 

Events

static OnBeforeMoveAction OnBeforeMove
 
static OnAfterMoveAction OnAfterMove
 

Member Function Documentation

◆ CheckControllerReferences()

virtual void BNG.SmoothLocomotion.CheckControllerReferences ( )
virtual

◆ CheckJump()

virtual bool BNG.SmoothLocomotion.CheckJump ( )
virtual

◆ CheckSprint()

virtual bool BNG.SmoothLocomotion.CheckSprint ( )
virtual

◆ DisableMovement()

virtual void BNG.SmoothLocomotion.DisableMovement ( )
virtual

◆ DoRigidBodyJump()

virtual void BNG.SmoothLocomotion.DoRigidBodyJump ( )
virtual

◆ EnableMovement()

virtual void BNG.SmoothLocomotion.EnableMovement ( )
virtual

◆ FixedUpdate()

virtual void BNG.SmoothLocomotion.FixedUpdate ( )
virtual

◆ GetMovementAxis()

virtual Vector2 BNG.SmoothLocomotion.GetMovementAxis ( )
virtual

◆ IsGrounded()

virtual bool BNG.SmoothLocomotion.IsGrounded ( )
virtual

◆ MoveCharacter() [1/2]

virtual void BNG.SmoothLocomotion.MoveCharacter ( )
virtual

◆ MoveCharacter() [2/2]

virtual void BNG.SmoothLocomotion.MoveCharacter ( Vector3  motion)
virtual

◆ MoveRigidCharacter() [1/2]

virtual void BNG.SmoothLocomotion.MoveRigidCharacter ( )
virtual

◆ MoveRigidCharacter() [2/2]

virtual void BNG.SmoothLocomotion.MoveRigidCharacter ( Vector3  moveTo)
virtual

◆ OnAfterMoveAction()

delegate void BNG.SmoothLocomotion.OnAfterMoveAction ( )

◆ OnBeforeMoveAction()

delegate void BNG.SmoothLocomotion.OnBeforeMoveAction ( )

◆ SetupCharacterController()

virtual void BNG.SmoothLocomotion.SetupCharacterController ( )
virtual

◆ SetupRigidbodyPlayer()

virtual void BNG.SmoothLocomotion.SetupRigidbodyPlayer ( )
virtual

◆ Update()

virtual void BNG.SmoothLocomotion.Update ( )
virtual

◆ UpdateInputs()

virtual void BNG.SmoothLocomotion.UpdateInputs ( )
virtual

Member Data Documentation

◆ AirControl

bool BNG.SmoothLocomotion.AirControl = true

◆ AirControlSpeed

float BNG.SmoothLocomotion.AirControlSpeed = 1f

◆ AirDrag

float BNG.SmoothLocomotion.AirDrag = 1f

◆ AllowInput

bool BNG.SmoothLocomotion.AllowInput = true

◆ ControllerType

PlayerControllerType BNG.SmoothLocomotion.ControllerType = PlayerControllerType.CharacterController

◆ ForwardDirection

Transform BNG.SmoothLocomotion.ForwardDirection

◆ FrictionMaterial

PhysicMaterial BNG.SmoothLocomotion.FrictionMaterial

◆ GroundContacts

int BNG.SmoothLocomotion.GroundContacts = 0

◆ inputAxis

List<InputAxis> BNG.SmoothLocomotion.inputAxis = new List<InputAxis>() { InputAxis.LeftThumbStickAxis }

◆ JumpAction

InputActionReference BNG.SmoothLocomotion.JumpAction

◆ JumpForce

float BNG.SmoothLocomotion.JumpForce = 3f

◆ JumpInput

List<ControllerBinding> BNG.SmoothLocomotion.JumpInput = new List<ControllerBinding>() { ControllerBinding.None }

◆ Magnitude

float BNG.SmoothLocomotion.Magnitude

◆ MaxHorizontalVelocity

float BNG.SmoothLocomotion.MaxHorizontalVelocity = 5f

◆ MaxSlopeAngle

float BNG.SmoothLocomotion.MaxSlopeAngle = 45f

◆ MaxVerticalVelocity

float BNG.SmoothLocomotion.MaxVerticalVelocity = 10f

◆ MoveAction

InputActionReference BNG.SmoothLocomotion.MoveAction

◆ MovementDrag

float BNG.SmoothLocomotion.MovementDrag = 1f

◆ MovementForce

float BNG.SmoothLocomotion.MovementForce = 500f

◆ MovementMaterial

PhysicMaterial BNG.SmoothLocomotion.MovementMaterial

◆ MovementSpeed

float BNG.SmoothLocomotion.MovementSpeed = 1.25f

◆ RequireAppFocus

bool BNG.SmoothLocomotion.RequireAppFocus = true

◆ SprintAction

InputActionReference BNG.SmoothLocomotion.SprintAction

◆ SprintInput

List<ControllerBinding> BNG.SmoothLocomotion.SprintInput = new List<ControllerBinding>() { ControllerBinding.None }

◆ SprintSpeed

float BNG.SmoothLocomotion.SprintSpeed = 1.5f

◆ StaticDrag

float BNG.SmoothLocomotion.StaticDrag = 5f

◆ StepHeight

float BNG.SmoothLocomotion.StepHeight = 0.1f

◆ StrafeSpeed

float BNG.SmoothLocomotion.StrafeSpeed = 1f

◆ StrafeSprintSpeed

float BNG.SmoothLocomotion.StrafeSprintSpeed = 1.25f

◆ SurfaceAngle

float BNG.SmoothLocomotion.SurfaceAngle = 0f

◆ SurfaceHeight

float BNG.SmoothLocomotion.SurfaceHeight = 0f

◆ UpdateMovement

bool BNG.SmoothLocomotion.UpdateMovement = true

Event Documentation

◆ OnAfterMove

OnAfterMoveAction BNG.SmoothLocomotion.OnAfterMove
static

◆ OnBeforeMove

OnBeforeMoveAction BNG.SmoothLocomotion.OnBeforeMove
static

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