You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// unexpected
let v = body.getVelocityAtWorldPoint( point );
>> Uncaught TypeError: vector is undefined
// workaround
let v = new CANNON.Vec3();
body.getVelocityAtWorldPoint(point, v);
It would be more consistent with the rest of the methods if the result parameter were optional.
The text was updated successfully, but these errors were encountered:
getVelocityAtWorldPoint requires
result
as parameter, despite returning result.It would be more consistent with the rest of the methods if the result parameter were optional.
The text was updated successfully, but these errors were encountered: