is registering void* as property possible?
class Obj
{
void *data;
};
r = engine->RegisterObjectProperty("Obj", "what to write here?", offsetof(Obj, data));
then i cast it to other script handle in the script.
like this
Npc @mynpc = cast<Npc>(data);
if this is not possible i could write my own caster in c++
i must do this because; i get callbacks from physics engine by storing objects as void* inside rigid bodies. i need to pass them to script and use them somehow.
thank you.