RayCast function in PhysicsWorld. How to use correctly?

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 :wink: 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 :wink:

Let me ask one of the engineers to document this.

Yeah I would be very very very grateful.

It is in the works. I’ll let you know once I have it.

Ok thank you :wink:

Kindly post it here so other can also get benefit from this. I also have the same question.
Thanks

It’s here Example … near the bottom of the page.