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
- Extension Methods
Methods
GenerateCollisionBoxList(IBlockAccessor, double, double, double, float, float, int)
protected override void GenerateCollisionBoxList(IBlockAccessor blockAccessor, double motionX, double motionY, double motionZ, float stepHeight, float yExtra, int dimension)
Parameters
blockAccessor
IBlockAccessormotionX
doublemotionY
doublemotionZ
doublestepHeight
floatyExtra
floatdimension
int
NewTick(EntityPos)
public void NewTick(EntityPos entityPos)
Parameters
entityPos
EntityPos
PushOutFromBlocks(IBlockAccessor, Entity, Vec3d, float)
public void PushOutFromBlocks(IBlockAccessor blockAccessor, Entity entity, Vec3d tmpVec, float clippingLimit)
Parameters
blockAccessor
IBlockAccessorentity
EntitytmpVec
Vec3dclippingLimit
float