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
capi
protected ICoreClientAPI capi
Field Value
clientInterval
protected const float clientInterval = 0.06666667
Field Value
collisionTester
[ThreadStatic]
protected static CachingCollisionTester collisionTester
Field Value
lPos
protected readonly EntityPos lPos
Field Value
mountableSupplier
protected IMountable mountableSupplier
Field Value
nPos
protected Vec3d nPos
Field Value
previousVersion
protected int previousVersion
Field Value
sapi
protected ICoreServerAPI sapi
Field Value
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()