@needle-tools/engine
Version:
Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.
20 lines (19 loc) • 688 B
TypeScript
import { Vector3 } from "three";
import { Behaviour } from "./Component.js";
import { Rigidbody } from "./RigidBody.js";
export declare abstract class Joint extends Behaviour {
connectedBody?: Rigidbody;
get rigidBody(): Rigidbody | null;
private _rigidBody;
onEnable(): void;
private create;
protected abstract createJoint(self: Rigidbody, other: Rigidbody): any;
}
export declare class FixedJoint extends Joint {
protected createJoint(self: Rigidbody, other: Rigidbody): void;
}
export declare class HingeJoint extends Joint {
anchor?: Vector3;
axis?: Vector3;
protected createJoint(self: Rigidbody, other: Rigidbody): void;
}