Closed matrefeytontias closed 9 years ago
Man, I need to figure out how to get github to filter better, only just saw this now.
This issue is not to do with Nape, but the semantics of property access on Dynamic objects, since userData is completely untyped userData.gravity is also untyped so property access works differently and must be done through Reflect.getProperty I believe.
Of course, the simpler way is to tell compiler what the (known to you) type is like:
(body.userData.gravity : Vec2).angle
Alright then, I'll do that, thanks :)
Example, this works on every target:
And this crashes only on Flash: