Show / Hide Table of Contents

Class AcrobatMotor

Inheritance
Object
Object
Component
Behaviour
MonoBehaviour
AcrobatMotor
Namespace: DaggerfallWorkshop.Game
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(PlayerMotor))]
[RequireComponent(typeof(CharacterController))]
public class AcrobatMotor : MonoBehaviour

Fields

| Improve this Doc View Source

airControl

Declaration
public bool airControl
Field Value
Type Description
Boolean
| Improve this Doc View Source

crouchingJumpDelta

Declaration
public float crouchingJumpDelta
Field Value
Type Description
Single
| Improve this Doc View Source

fallingDamageThreshold

Declaration
public float fallingDamageThreshold
Field Value
Type Description
Single
| Improve this Doc View Source

gravity

Declaration
public float gravity
Field Value
Type Description
Single
| Improve this Doc View Source

jumpSpeed

Declaration
public float jumpSpeed
Field Value
Type Description
Single

Properties

| Improve this Doc View Source

Falling

Declaration
public bool Falling { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Jumping

Declaration
public bool Jumping { get; set; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

AdjustFallStart(Single)

Call this when floating origin ticks on Y to ensure player doesn't die by jumping right at threshold

Declaration
public void AdjustFallStart(float y)
Parameters
Type Name Description
Single y

Amount to increment to fallstart

| Improve this Doc View Source

ApplyGravity(ref Vector3)

Declaration
public void ApplyGravity(ref Vector3 moveDirection)
Parameters
Type Name Description
Vector3 moveDirection
| Improve this Doc View Source

CheckAirControl(ref Vector3, Single)

If air control is allowed, check movement but don't touch the y component

Declaration
public void CheckAirControl(ref Vector3 moveDirection, float speed)
Parameters
Type Name Description
Vector3 moveDirection

the Vector to adjust for movement

Single speed

The speed multiplier

| Improve this Doc View Source

CheckFallingDamage()

If we were falling, and we fell a vertical distance greater than the threshold, run a falling damage routine

Declaration
public void CheckFallingDamage()
| Improve this Doc View Source

CheckInitFall(ref Vector3)

If we stepped over a cliff or something, set the height at which we started falling

Declaration
public void CheckInitFall(ref Vector3 moveDirection)
Parameters
Type Name Description
Vector3 moveDirection
| Improve this Doc View Source

ClearFallingDamage()

Declaration
public void ClearFallingDamage()
| Improve this Doc View Source

HandleJumpInput(ref Vector3)

Jump!

Declaration
public void HandleJumpInput(ref Vector3 moveDirection)
Parameters
Type Name Description
Vector3 moveDirection
| Improve this Doc View Source

HitHead(ref Vector3)

Declaration
public void HitHead(ref Vector3 moveDirection)
Parameters
Type Name Description
Vector3 moveDirection

Extension Methods

MBExtensions.Invoke(MonoBehaviour, Action, Single)
MBExtensions.Invoke<T>(MonoBehaviour, Action<T>, T, Single)
MBExtensions.Invoke<T1, T2>(MonoBehaviour, Action<T1, T2>, T1, T2, Single)
MBExtensions.Invoke<T1, T2, T3>(MonoBehaviour, Action<T1, T2, T3>, T1, T2, T3, Single)
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX