Table of Contents

Class PhysicsBehaviorBase

Namespace
Vintagestory.API.Common.Entities
Assembly
VintagestoryAPI.dll
public abstract class PhysicsBehaviorBase : EntityBehavior
Inheritance
PhysicsBehaviorBase
Derived
Inherited Members
Extension Methods

Constructors

PhysicsBehaviorBase(Entity)

public PhysicsBehaviorBase(Entity entity)

Parameters

entity Entity

Fields

CollisionYExtra

public float CollisionYExtra

Field Value

float

capi

protected ICoreClientAPI capi

Field Value

ICoreClientAPI

clientInterval

protected const float clientInterval = 0.06666667

Field Value

float

collisionTester

[ThreadStatic]
protected static CachingCollisionTester collisionTester

Field Value

CachingCollisionTester

lPos

protected readonly EntityPos lPos

Field Value

EntityPos

mountableSupplier

protected IMountable mountableSupplier

Field Value

IMountable

nPos

protected Vec3d nPos

Field Value

Vec3d

previousVersion

protected int previousVersion

Field Value

int

sapi

protected ICoreServerAPI sapi

Field Value

ICoreServerAPI

Methods

AfterInitialized(bool)

Called after initializing all the behaviors in case they need to cross-refer to each other or set some initial values only at spawn-time

public override void AfterInitialized(bool onFirstSpawn)

Parameters

onFirstSpawn bool

Init()

public void Init()