Jump to content

Search the Community

Showing results for tags 'typings'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 2 results

  1. Hi, I used to add mesh as camera.setTarget so camera follows mesh. But in t.ds file only Vector3 is allowed as target. But example with mesh as target works: http://www.babylonjs-playground.com/#BXII%2323 Typings are wrong or I am doing something wrongly?
  2. 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.
×
×
  • Create New...