-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Following the C++ API:
b2RevoluteJointDef jointDef;
b2RevoluteJoint* joint = (b2RevoluteJoint*)myWorld->CreateJoint(&jointDef);
I have tried:
jointDef := box2d.MakeB2RevoluteJointDef()
joint := (*box2d.B2RevoluteJoint)(world.CreateJoint(&jointDef))
which results in the error: cannot convert world.CreateJoint(&jointDef) (value of type box2d.B2JointInterface) to *box2d.B2RevoluteJoint
can you give an example on how to create a joint?
Metadata
Metadata
Assignees
Labels
No labels