The delegates are included, so what is the best way to capture the collision events using the new Headers?
Without the Headers using TylerH's old wrapper, I'd call SetEntityCallback like this:
SetEntityCallback(box1, New EntityCallback(AddressOf DoSomething), ENTITYCALLBACK_COLLISION)
With the new Headers, do I create something like this? If so, how do I tell Leadwerks to invoke the delegate without the SetEntityCallback function?
//C# (translated, may be incorrect)
EntityCollisionCallback del = new EntityCollisionCallback(CollisionHappened);
public void CollisionHappened(System.IntPtr _entity1, System.IntPtr _entity2, Leadwerks.Vector3 _position, Leadwerks.Vector3 _normal, float force)
{
DrawText(_entity1, 300, 300);
}
EDIT: VB removed
I can't find the 'SetEntityCallback' function in the Core namespace. Where did it go?