Class PModuleInAir
- Namespace
- Vintagestory.API.Common.Entities
- Assembly
- VintagestoryAPI.dll
public class PModuleInAir : PModule
- Inheritance
-
PModuleInAir
- Derived
- Inherited Members
- Extension Methods
Fields
AirMovingStrength
public float AirMovingStrength
Field Value
WallDragFactor
public double WallDragFactor
Field Value
Methods
Applicable(Entity, EntityPos, EntityControls)
Applicable if the player is in fly mode or the entity isn't colliding with anything including liquid. Must be alive.
public override bool Applicable(Entity entity, EntityPos pos, EntityControls controls)
Parameters
entity
Entitypos
EntityPoscontrols
EntityControls
Returns
ApplyFlying(float, Entity, EntityPos, EntityControls)
Creative flight movement, possibly glider too?
public virtual void ApplyFlying(float dt, Entity entity, EntityPos pos, EntityControls controls)
Parameters
dt
floatentity
Entitypos
EntityPoscontrols
EntityControls
ApplyFreeFall(float, Entity, EntityPos, EntityControls)
public virtual void ApplyFreeFall(float dt, Entity entity, EntityPos pos, EntityControls controls)
Parameters
dt
floatentity
Entitypos
EntityPoscontrols
EntityControls
DoApply(float, Entity, EntityPos, EntityControls)
Apply a modifier to this entity.
public override void DoApply(float dt, Entity entity, EntityPos pos, EntityControls controls)
Parameters
dt
floatentity
Entitypos
EntityPoscontrols
EntityControls
Initialize(JsonObject, Entity)
Config passed in from the behavior in the entity class.
public override void Initialize(JsonObject config, Entity entity)
Parameters
config
JsonObjectentity
Entity