Table of Contents

Interface IPhysicsTickable

Namespace
Vintagestory.API.Common.Entities
Assembly
VintagestoryAPI.dll
public interface IPhysicsTickable
Extension Methods

Properties

Ticking

bool Ticking { get; set; }

Property Value

bool

Methods

AfterPhysicsTick(float)

Called once per server tick, after all physics ticking has occurred; on main thread.

void AfterPhysicsTick(float dt)

Parameters

dt float

CanProceedOnThisThread()

If physics is multithreaded, indicates whether this tickable can proceed to be worked on on this particular thread, or not

bool CanProceedOnThisThread()

Returns

bool

OnPhysicsTick(float)

Called at a fixed interval, potentially 30 times per second (if server is running smoothly)

void OnPhysicsTick(float dt)

Parameters

dt float

OnPhysicsTickDone()

Should be called at the end of each individual physics tick, necessary for multithreading to share the work properly

void OnPhysicsTickDone()