Hello, I got the problem with RayCast function.
cocos2d::Vec2 nearPosition(150, 150);
cocos2d::Vec2 farPosition(170, 170);
Vec2 points[5];
int num = 0;
auto onRayCast = [&points, &num](PhysicsWorld& world, const PhysicsRayCastInfo& info, void* data)->bool {
log("ray cast!");
return true;
};
this->getPhysicsWorld()->rayCast(onRayCast, nearPosition, farPosition, nullptr);
It’s pretty similar with this tutorial
It trows an exception:
Windows, cocos version 3.17
