turbulenz / turbulenz_engine

Turbulenz is a modular 3D and 2D game framework for making HTML5 powered games for browsers, desktops and mobile devices.
http://turbulenz.com
MIT License
4.55k stars 513 forks source link

Physics2DWorld.rayCast() doesn't reset callback.minShape #22

Open Zacqary opened 11 years ago

Zacqary commented 11 years ago

rayCast() isn't resetting all of its properties correctly, leading to some callbacks not working properly. This is fixed in jslib/physics2ddevice.js by adding callback.minShape = null; to line 7243. I'm not sure what the TypeScript fix is.

deltaluca commented 11 years ago

Looking into it.