Hipmunk icon indicating copy to clipboard operation
Hipmunk copied to clipboard

Problems instancing Entity

Open Lokidottir opened this issue 9 years ago • 2 comments

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?

Lokidottir avatar Nov 04 '15 08:11 Lokidottir

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

meteficha avatar Nov 04 '15 13:11 meteficha

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.

Lokidottir avatar Nov 04 '15 14:11 Lokidottir