Hi,
Would be here someone so greatful and explain me how should I use this function:
scene->getPhysicsWorld()->rayCast(PhysicsRayCastCallbackFunc func, const cocos2d::Vec2 &start, const cocos2d::Vec2 &end, void *data);
I understand Vec2 start and Vec2 end But what I should put in first and last argument (I mean func and *data)?
Is it possible to use this function without box2d? Or it is necessary?
Thanks for all anserwrs. It is really important matter for me