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: any, second: any, distance?: number, options?: IDistanceConstraintOptions) {
super(new CANNON.DistanceConstraint(
first.impl,
second.impl,
distance!,
options === undefined ? undefined : options.maxForce));
}
}
constructor (first: CannonSharedBody, second: CannonSharedBody, distance?: number, options?: IDistanceConstraintOptions) {
super(new CANNON.DistanceConstraint(
first.body,
second.body,
distance!,
options === undefined ? undefined : options.maxForce));
}
}