Class CouplingPhysics
java.lang.Object
com.simibubi.create.content.contraptions.components.structureMovement.train.CouplingPhysics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.phys.Vec3followLinkOnRail(net.minecraft.world.phys.Vec3 link, net.minecraft.world.phys.Vec3 cart, float diffToReduce, net.minecraft.world.phys.Vec3 railAxis) static voidhardCollisionStep(net.minecraft.world.level.Level world, Couple<net.minecraft.world.entity.vehicle.AbstractMinecart> carts, double couplingLength) static voidsoftCollisionStep(net.minecraft.world.level.Level world, Couple<net.minecraft.world.entity.vehicle.AbstractMinecart> carts, double couplingLength) static voidtick(net.minecraft.world.level.Level world) static voidtickCoupling(net.minecraft.world.level.Level world, Couple<MinecartController> c)
-
Constructor Details
-
CouplingPhysics
public CouplingPhysics()
-
-
Method Details
-
tick
public static void tick(net.minecraft.world.level.Level world) -
tickCoupling
public static void tickCoupling(net.minecraft.world.level.Level world, Couple<MinecartController> c) -
hardCollisionStep
public static void hardCollisionStep(net.minecraft.world.level.Level world, Couple<net.minecraft.world.entity.vehicle.AbstractMinecart> carts, double couplingLength) -
softCollisionStep
public static void softCollisionStep(net.minecraft.world.level.Level world, Couple<net.minecraft.world.entity.vehicle.AbstractMinecart> carts, double couplingLength) -
followLinkOnRail
public static net.minecraft.world.phys.Vec3 followLinkOnRail(net.minecraft.world.phys.Vec3 link, net.minecraft.world.phys.Vec3 cart, float diffToReduce, net.minecraft.world.phys.Vec3 railAxis)
-