Class PlaneConstraint

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

public class PlaneConstraint extends Object implements ParticleConstraint3D
Constrains a particle's movement by locking it to a fixed axis aligned plane.
  • Field Details

  • Constructor Details

    • PlaneConstraint

      public PlaneConstraint(Vec3D.Axis axis, Vec3D.Axis axis2, Vec3D constraint)
      Parameters:
      axis - 1st axis to lock
      axis2 - 2d axis to lock
      constraint - point on the desired constraint plane
  • Method Details