Atlas Engine
API Referencebezel

HingeJoint

Constraint allowing rotation about a hinge axis, with optional limits and motor.

Module: bezel

Constraint allowing rotation about a hinge axis, with optional limits and motor.

Declaration

export class HingeJoint extends Joint { ... }

Extends: Joint

Properties

axis1

The primary hinge axis.

axis1: Normal3d;

axis2

The secondary hinge axis.

axis2: Normal3d;

angleLimits

The angle limits.

angleLimits: AngleLimits;

motor

The motor.

motor: Motor;

Methods

beforePhysics

Runs immediately before the physics simulation step.

override beforePhysics(): void;

breakJoint

Breaks the physical constraint between the joint members.

override breakJoint(): void;

On this page