Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor (first: CannonSharedBody, firstPivot: Vec3, second: CannonSharedBody, secondPivot: Vec3, options?: any) {
super(new CANNON.PointToPointConstraint(
first.body,
Vec3.copy(new CANNON.Vec3(), firstPivot),
second.body,
Vec3.copy(new CANNON.Vec3(), secondPivot),
options === undefined ? undefined : options.maxForce));
}
}