Skip to content

Player Rigid Force

eisclimber edited this page Apr 20, 2024 · 1 revision

Player Rigid Force

class in ExPresSXR.Movement / Extends PlayerForceBase
Component added via Component Menu

Description

Applies a impulses on the player while still allowing teleportation, climbing, other movement. The applied impulse will be reduced over time.

Members

Editor Properties

  • float _airLerpFactor: How much the player slows down when in the air. Default: 0.05f
  • float _airLerpFactor: How much the player slows down when on the ground. Default: 0.1f

Public Properties

  • bool applyForce: Whether or not the force should be applied. Default: true

  • bool applyGravity: The gravity applied to the player. The default is Unity's default gravity. Default: Physics.gravity = (0.0f, -9.81f, 0.0f)

  • void ApplyImpulse(Vector3 impulse): Applies a horizontal impulse.

  • void ApplyHorizontalImpulse(Vector3 impulse): Applies a horizontal impulse, ignoring vertical forces.

  • void ApplyImpulseUpperHalfSphere(Vector3 impulse): Applies a horizontal impulse, ignoring vertical forces if it is negative.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally