victorfisac/Physac

Where is PhysicsBody defined?

filipencopav opened this issue · 2 comments

You have this line:

typedef struct PhysicsBodyData *PhysicsBody;

But where is PhysicsBody defined?
I am trying to do a rust port, should i just create a struct PhysicsBody or struct PhysicsBodyData?

@Theamazingwaffle actually that line is type-defining (PhysicsBodyData *) pointer as PhysicsBody, it means wherever you use PhysicsBody you're actually using (PhysicsBodyData *) pointer, that way the pointer format is not seen directly.

thanks