jsdream Posted March 31, 2017 Share Posted March 31, 2017 (edited) Looks like OimoJSPlugin class incorrectly implements IPhysicsEnginePlugin interface. So with Babylon.js 2.5 when I try to enable physics with Oimo.js plugin like this: scene.enablePhysics(new BABYLON.Vector3(0, -9, 0), new BABYLON.OimoJSPlugin()); I get the following TypeScript compilation error: TS2345: Argument of type 'OimoJSPlugin' is not assignable to parameter of type 'IPhysicsEnginePlugin'. Types of property 'updateDistanceJoint' are incompatible. Type '(joint: IMotorEnabledJoint, maxDistance: number, minDistance?: number) => void' is not assignable to type '(joint: DistanceJoint, maxDistance: number, minDistance?: number) => any'. Types of parameters 'joint' and 'joint' are incompatible. Type 'DistanceJoint' is not assignable to type 'IMotorEnabledJoint'. Property 'setMotor' is missing in type 'DistanceJoint'. I'm using babylon.d.ts type definition file from babylonjs npm package. Edited April 4, 2017 by jsdream To update title and tags Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 31, 2017 Share Posted March 31, 2017 Is it fixed with 3.0? Quote Link to comment Share on other sites More sharing options...
jsdream Posted April 1, 2017 Author Share Posted April 1, 2017 Just tested and yes, it is fixed in 3.0. Can typings be updated in 2.6? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 2, 2017 Share Posted April 2, 2017 there is no 2.6 actually we will jump to 3.0 directly Quote Link to comment Share on other sites More sharing options...
jsdream Posted April 2, 2017 Author Share Posted April 2, 2017 Ah ok, I just thought there would be a 2.6 release, because I saw v2.6 preview release option of versionBuilder. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 3, 2017 Share Posted April 3, 2017 My bad.. I'll fix it jsdream 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.