Struct CuboidContact
- Namespace
- Vintagestory.API.MathTools
- Assembly
- VintagestoryAPI.dll
The closest-axis contact between two cuboids. Separation is positive for a gap, zero for touching, and negative for penetration.
public readonly struct CuboidContact
- Inherited Members
- Extension Methods
Constructors
CuboidContact(FastVec3d, double)
The closest-axis contact between two cuboids. Separation is positive for a gap, zero for touching, and negative for penetration.
public CuboidContact(FastVec3d normal, double separation)
Parameters
Fields
Normal
The unit normal pointing from the source cuboid toward the queried cuboid.
public readonly FastVec3d Normal
Field Value
Separation
The distance between the cuboids along Normal, or a negative penetration depth.
public readonly double Separation