INNER CODE UNIT · TypeScript

HingeConstraint

GameFrameX/GameFrameX · LayaBox/engine/types/cannon.d.ts:200

    export class HingeConstraint extends Constraint {

        axisA: Vec3;
        axisB: Vec3;
        rotationalEquation1: RotationalEquation;
        rotationalEquation2: RotationalEquation;
        motorEnabled: boolean;
        motorTargetVelocity: number;
        motorMinForce: number;
        motorMaxForce: number;
        motorEquation: RotationalMotorEquation;

        constructor(bodyA: Body, bodyB: Body, options?: IHingeConstraintOptions);

        enableMotor(): void;
        disableMotor(): void;
        setMotorMaxForce(maxForce: number): void;
        setMotorSpeed(speed: number): void;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…