Interface for a hinge joint.

铰链关节接口。

interface IHingeJoint {
    destroy(): void;
    enableDrive(value: boolean): void;
    enableFreeSpin(value: boolean): void;
    enableLimit(value: boolean): void;
    getAngle(): number;
    getAngularForce(): Vector3;
    getlinearForce(): Vector3;
    getVelocity(): Readonly<Vector3>;
    isCollision(value: boolean): void;
    isEnable(value: boolean): void;
    isValid(): boolean;
    setAxis(value: Vector3): void;
    setBounceness(value: number): void;
    setBouncenMinVelocity(value: number): void;
    setBreakForce(value: number): void;
    setBreakTorque(value: number): void;
    setCollider(owner: ICollider): void;
    setConnectedCollider(owner: ICollider): void;
    setConnectedInertiaScale(value: number): void;
    setConnectedMassScale(value: number): void;
    setConnectLocalPos(pos: Vector3): void;
    setContactDistance(value: number): void;
    setDriveForceLimit(limit: number): void;
    setDriveVelocity(velocity: number): void;
    setInertiaScale(value: number): void;
    setLocalPos(pos: Vector3): void;
    setLowerLimit(lowerLimit: number): void;
    setMassScale(value: number): void;
    setOwner(value: Node): void;
    setUpLimit(value: number): void;
}

层级 (查看层级一览)

实现于

方法