You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are several methods, such as b2World::CreateJoint and b2Fixture::GetShape that have a return type that is the abstract base class corresponding to the object that is returned. In XS, we bless the returned objects to this class, not the subclass.
For example, the return type of b2World::CreateJoint is b2Joint. In C++, you can do this:
There are several methods, such as b2World::CreateJoint and b2Fixture::GetShape that have a return type that is the abstract base class corresponding to the object that is returned. In XS, we bless the returned objects to this class, not the subclass.
For example, the return type of b2World::CreateJoint is b2Joint. In C++, you can do this:
b2RevoluteJoint* joint = myWorld->CreateJoint(&jointDef);
In Perl, we have to:
I think it would be better to bless the returned objects directly into the subclass.
The text was updated successfully, but these errors were encountered: