It looks like you're new here. If you want to get involved, click one of these buttons!
local ground = self.scene.world:createBody({}) local x,y = self.myMonster:localToGlobal(0,0) local jointDef = b2.createRevoluteJointDef(self.body, ground, 900,y+100) self.revoluteJoint = self.scene.world:createJoint(jointDef) self.revoluteJoint:enableMotor(true) self.revoluteJoint:setMotorSpeed(360) |
Comments
Likes: JuanZambrano