Table of Contents

Class EntityBehaviorControlledPhysics

Namespace
Vintagestory.GameContent
Assembly
VSEssentials.dll

Controlled physics system for entities.
Uses the "controlledphysics" code Open in GitHub

[DocumentAsJson]
[AddDocumentationProperty("physics", "A set of properties used for physics modules", "Vintagestory.API.Datastructures.JsonObject", "Optional", "None", true)]
public class EntityBehaviorControlledPhysics : PhysicsBehaviorBase
Inheritance
EntityBehaviorControlledPhysics
Derived

Examples

"behaviors": [
 {
    "code": "controlledphysics"
    "stepHeight": 1.1251
 }
]

Fields

climbDownSpeed (Optional) (Default: 0.035)

Downward climbing speed on ladders

[DocumentAsJson("Optional", "0.035", false)]
public float climbDownSpeed

Field Value

float

climbUpSpeed (Optional) (Default: 0.07)

Upward climbing speed on ladders

[DocumentAsJson("Optional", "0.07", false)]
public float climbUpSpeed

Field Value

float

StepHeight (Optional) (Default: 0.6)

Determines max block height the entity can step up without jumping. 1.0 equals a full block

[DocumentAsJson("Optional", "0.6", false)]
public float StepHeight

Field Value

float

stepUpSpeed (Optional) (Default: 0.07)

Speed at which the entity steps up blocks

[DocumentAsJson("Optional", "0.07", false)]
public float stepUpSpeed

Field Value

float

Properties

physics (Optional) (Default: None)

A set of properties used for physics modules

Property Value

JsonObject