import { PhysXColliderShape } from "./PhysXColliderShape" ; import { IPlaneColliderShape } from "@oasis-engine/design" ; import { PhysXPhysicsMaterial } from "../PhysXPhysicsMaterial" ; import { PhysXPhysics } from "../PhysXPhysics" ; import { Quaternion , Vector3 } from "oasis-engine" ; /**
 * Plane collider shape in PhysX.
 */ export class PhysXPlaneColliderShape extends PhysXColliderShape implements IPlaneColliderShape { param uniqueID param material constructor ( uniqueID , material ) { super ( ) ; this . _pxGeometry = new PhysXPhysics . _physX . PxPlaneGeometry ( ) ; this . _allocShape ( material ) ; this . _setLocalPose ( ) ; this . setUniqueID ( uniqueID ) ; } /**
     * {@inheritDoc IPlaneColliderShape.setRotation }
     */ setRotation ( value ) { Quaternion . rotationYawPitchRoll ( value . x , value . y , value . z , this . _rotation ) ; Quaternion . rotateZ ( this . _rotation , Math . PI * 0.5 , this . _rotation ) ; this . _rotation . normalize ( ) ; this . _setLocalPose ( ) ; } /**
     * {@inheritDoc IColliderShape.setWorldScale }
     */ setWorldScale ( scale ) { } }