Table of Contents

Class CachingCollisionTester

Namespace
Vintagestory.API.MathTools
Assembly
VintagestoryAPI.dll

Special version of CollisionTester for BehaviorControlledPhysics, which does not re-do the WalkBlocks() call and re-generate the CollisionBoxList more than once in the same entity tick

public class CachingCollisionTester : CollisionTester
Inheritance
CachingCollisionTester
Inherited Members

Methods

GenerateCollisionBoxList(IBlockAccessor, double, double, double, float, float)

protected override void GenerateCollisionBoxList(IBlockAccessor blockAccessor, double motionX, double motionY, double motionZ, float stepHeight, float yExtra)

Parameters

blockAccessor IBlockAccessor
motionX double
motionY double
motionZ double
stepHeight float
yExtra float

NewTick()

public void NewTick()