Viewer - Interaction
    Preparing search index...

    Class PlaneConstraint

    The plane constraint is used for dragging and allows to specify a plane on which an object can be dragged. The transformation and optional rotation of this constraint get applied to the node if it is the constraint with the closest distance to the ray that was used for the drag event. As this is a difficult topic, please visit our help desk section on interactions where we go through the process of setting everything up with examples.

    This class is deprecated and will be removed in the future. Please use the PlaneRestriction instead.

    Implements

    • IDragConstraint
    Index

    Constructors

    • Parameters

      • _normal: vec3

        the normal vector of the plane

      • Optional_coplanarPoint: vec3

        a coplanar point on the plane

      • Optional_rotation: { angle: number; axis: vec3 }

        the rotation in axis-angle representation that is applied to the node if the drag contraint becomes active

      Returns PlaneConstraint

    Accessors

    • get coplanarPoint(): vec3 | undefined

      Returns vec3 | undefined

    • get normal(): vec3

      Returns vec3

    • get rotation(): { angle: number; axis: vec3 } | undefined

      Returns { angle: number; axis: vec3 } | undefined