Class AxisConstraint

java.lang.Object
toxi.physics3d.constraints.AxisConstraint
All Implemented Interfaces:
ParticleConstraint3D

public class AxisConstraint extends Object implements ParticleConstraint3D
Constrains a particle's movement by locking a given axis to a fixed value.
  • Field Details

    • constraint

      public float constraint
    • axis

      public Vec3D.Axis axis
  • Constructor Details

    • AxisConstraint

      public AxisConstraint(Vec3D.Axis axis, float constraint)
      Parameters:
      axis - axis to lock
      constraint - constrain the axis to this value
  • Method Details