Using the raycast function of the ammo plugin, I get the following error:
Cannot read property 'reset' of undefined at e.raycast (babylon.js:16) at index.ts:78 at e._renderLoop (babylon.js:16)
Looks like you forgot to initialize _raycastResult @trevordev
Wouldn’t it also be nice to return copy? If you always return the same object and reset it in between, unwanted side effects might happen, if the user stores a reference to it.