meteficha / Hipmunk

Haskell binding for Chipmunk, 2D physics engine.
Other
22 stars 11 forks source link

Problems instancing Entity #12

Open Lokidottir opened 8 years ago

Lokidottir commented 8 years ago

Hi

So I've needed to instance the Entity typeclass so that I could add some data for use during collisions, but the entityPtr method, for which I intended to just use Shape's, is a hidden method making it impossible to implement. I'm hoping there's a workaround to this?

meteficha commented 8 years ago

You're not meant to have your own instances of the Entity typeclass.

Lokidottir commented 8 years ago

I understand, there wasn't any obvious way of distinguishing what object is what during collisions though. Remedied it by using the group field to hold my UUIDs.