Show / Hide Table of Contents

Class MovementSpeedModifierComponent

Applies basic movement speed and movement modifiers for an entity. If this is not present on the entity then they will use defaults for movement.

Inheritance
System.Object
MovementSpeedModifierComponent
Namespace: Content.Shared.Movement.Components
Assembly: Content.Shared.dll
Syntax
public sealed class MovementSpeedModifierComponent : Component

Fields

| Improve this Doc View Source

Acceleration

The acceleration applied to mobs when moving.

Declaration
public float Acceleration
Field Value
Type Description
System.Single
| Improve this Doc View Source

DefaultAcceleration

Declaration
public const float DefaultAcceleration = null
Field Value
Type Description
System.Single
| Improve this Doc View Source

DefaultBaseSprintSpeed

Declaration
public const float DefaultBaseSprintSpeed = null
Field Value
Type Description
System.Single
| Improve this Doc View Source

DefaultBaseWalkSpeed

Declaration
public const float DefaultBaseWalkSpeed = null
Field Value
Type Description
System.Single
| Improve this Doc View Source

DefaultFriction

Declaration
public const float DefaultFriction = null
Field Value
Type Description
System.Single
| Improve this Doc View Source

DefaultFrictionNoInput

Declaration
public const float DefaultFrictionNoInput = null
Field Value
Type Description
System.Single
| Improve this Doc View Source

DefaultMinimumFrictionSpeed

Declaration
public const float DefaultMinimumFrictionSpeed = null
Field Value
Type Description
System.Single
| Improve this Doc View Source

DefaultWeightlessAcceleration

Declaration
public const float DefaultWeightlessAcceleration = null
Field Value
Type Description
System.Single
| Improve this Doc View Source

DefaultWeightlessFriction

Declaration
public const float DefaultWeightlessFriction = null
Field Value
Type Description
System.Single
| Improve this Doc View Source

DefaultWeightlessFrictionNoInput

Declaration
public const float DefaultWeightlessFrictionNoInput = null
Field Value
Type Description
System.Single
| Improve this Doc View Source

DefaultWeightlessModifier

Declaration
public const float DefaultWeightlessModifier = null
Field Value
Type Description
System.Single
| Improve this Doc View Source

Friction

The negative velocity applied for friction.

Declaration
public float Friction
Field Value
Type Description
System.Single
| Improve this Doc View Source

FrictionNoInput

The negative velocity applied for friction.

Declaration
public float? FrictionNoInput
Field Value
Type Description
System.Nullable<System.Single>
| Improve this Doc View Source

MinimumFrictionSpeed

Minimum speed a mob has to be moving before applying movement friction.

Declaration
public float MinimumFrictionSpeed
Field Value
Type Description
System.Single
| Improve this Doc View Source

SprintSpeedModifier

Declaration
public float SprintSpeedModifier
Field Value
Type Description
System.Single
| Improve this Doc View Source

WalkSpeedModifier

Declaration
public float WalkSpeedModifier
Field Value
Type Description
System.Single
| Improve this Doc View Source

WeightlessAcceleration

The acceleration applied to mobs when moving and weightless.

Declaration
public float WeightlessAcceleration
Field Value
Type Description
System.Single
| Improve this Doc View Source

WeightlessFriction

The negative velocity applied for friction when weightless and providing inputs.

Declaration
public float WeightlessFriction
Field Value
Type Description
System.Single
| Improve this Doc View Source

WeightlessFrictionNoInput

The negative velocity applied for friction when weightless and not providing inputs. This is essentially how much their speed decreases per second.

Declaration
public float WeightlessFrictionNoInput
Field Value
Type Description
System.Single
| Improve this Doc View Source

WeightlessModifier

The movement speed modifier applied to a mob's total input velocity when weightless.

Declaration
public float WeightlessModifier
Field Value
Type Description
System.Single

Properties

| Improve this Doc View Source

BaseSprintSpeed

Declaration
public float BaseSprintSpeed { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

BaseWalkSpeed

Declaration
public float BaseWalkSpeed { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

CurrentSprintSpeed

Declaration
public float CurrentSprintSpeed { get; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

CurrentWalkSpeed

Declaration
public float CurrentWalkSpeed { get; }
Property Value
Type Description
System.Single
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾