How to create a cocos2d-x's PhysicsBody that does not rotate -


i'm using cocos2dx write simple game. wanted use cocos2dx's physics engine don't need object rotate it's initial direction. turns out can't find way it. tried put static physics body , attaching other bodies physicsjoinmotor or physicsjointgear o avail. ideas on how accomplish this?

body->setrotationenable(true);


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -