Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
说你有B2body *bodyA和b2MouseJoint *mousejointA。
B2body *bodyA
b2MouseJoint *mousejointA
如何检查 bodyA 是否连接到 mousejointA 或被 mousejointA 触摸?
if(mouseJointA->GetBodyB() == bodyA){ //Bingo};