PhysicsHelper

Functions

Link copied to clipboard
fun applyVelocityPhysics(velocity: Vec3, partialTick: Double): Vec3

Apply air drag and gravity to velocity

Link copied to clipboard
fun getBlocksInPath(displacement: Segment): List<BlockPos>
Link copied to clipboard
fun getVelocityAfterBounce(position: Vec3, point: Vec3, velocity: Vec3, direction: Direction): Vec3