public final class TransformUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static net.minecraft.util.math.Vec3d |
hitToUV(Face face,
Port facing,
net.minecraft.util.math.Vec3d hitPos)
Project a hit position on the surface of a block to a UV coordinate on
the that side, taking into account potential rotation of the block
around the Y axis (up being south).
|
static net.minecraft.util.math.Vec3d |
hitToUV(Face face,
net.minecraft.util.math.Vec3d hitPos)
Project a hit position on the surface of a block to a UV coordinate on
the that side.
|
public static net.minecraft.util.math.Vec3d hitToUV(Face face, net.minecraft.util.math.Vec3d hitPos)
face - the face to project the hit onto.hitPos - the hit position to project, in block local coordinates.public static net.minecraft.util.math.Vec3d hitToUV(Face face, Port facing, net.minecraft.util.math.Vec3d hitPos)
face - the face to project the hit onto.facing - the rotation of the block.hitPos - the hit position to project, in block local coordinates.Face.fromDirection(Direction),
Port.fromDirection(Direction)