PhilT Posted March 31, 2018 Share Posted March 31, 2018 After merging 2 meshes trying to call applyImpulse results in a null exception something like this: Uncaught TypeError: Cannot read property 'applyImpulse' of undefined at CannonJSPlugin.applyImpulse (es6.js:81725) at PhysicsImpostor.applyImpulse (es6.js:80780) Same happens with Oimo. Replicated here: http://playground.babylonjs.com/#UGLFTI#1 Quote Link to comment Share on other sites More sharing options...
Guest Posted April 2, 2018 Share Posted April 2, 2018 This is because merging two meshes do not generate a new impostor for the merged mesh. You have to create a new impostor for it as well PhilT 1 Quote Link to comment Share on other sites More sharing options...
PhilT Posted April 2, 2018 Author Share Posted April 2, 2018 Aha! Thanks @Deltakosh. So obvious when you say it! Quote Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2018 Share Posted April 3, 2018 My pleasure! 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.