Hipmunk
Hipmunk copied to clipboard
Problems instancing Entity
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?
You're not meant to have your own instances of the Entity
typeclass.
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.