Class ParticlePhysics
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
public class ParticlePhysics
- Inheritance
-
ParticlePhysics
- Inherited Members
- Extension Methods
Constructors
ParticlePhysics(IBlockAccessor)
public ParticlePhysics(IBlockAccessor blockAccess)
Parameters
blockAccess
IBlockAccessor
Fields
AsyncSpawnTime
public const float AsyncSpawnTime = 0.033
Field Value
BlockAccess
public IBlockAccessor BlockAccess
Field Value
CollisionBoxList
public CachedCuboidList CollisionBoxList
Field Value
MotionCap
public float MotionCap
Field Value
PhysicsTickTime
public float PhysicsTickTime
Field Value
Methods
CollisionStrength(Vec3f, Vec3f, float, float)
public Vec3f CollisionStrength(Vec3f velocitybefore, Vec3f velocitynow, float gravityStrength, float deltatime)
Parameters
Returns
HandleBoyancy(Vec3d, Vec3f, bool, float, float, float)
public void HandleBoyancy(Vec3d pos, Vec3f velocity, bool boyant, float gravityStrength, float deltatime, float height)
Parameters
UpdateMotion(Vec3d, Vec3f, float)
Updates the velocity vector according to the amount of passed time, gravity and terrain collision.
public EnumCollideFlags UpdateMotion(Vec3d pos, Vec3f motion, float size)