Joints
joints
https://docs.coronalabs.com/guide/physics/physicsJoints/index.html
pivot
bodyA
bounce = 1
density = 1
friction = 1
gravityScale = 1
isSensor = true
radius = 0 –0 means use object width/2 if cirlce is selected
shape =“rectangle”, – “circle”, – rectangle, path
type = “static” – kinematic, static, dynamic
bodyB
bounce = 1
density = 1
friction = 1
gravityScale = 1
isSensor = false
radius = 0, –0 means use object width/2 if cirlce is selected
shape =“rectangle”, – “circle”, – rectangle, path
type = “dynamic”, – kinematic, static, dynamic
joint A B
- bodyA = "rect_0"
- bodyB = "rect_1"
- type = "pivot", --pistoin, distance, pulle, + defaultSet
- anchor_x = rect_0.x + rect_0.width/2
- anchor_y = rect_0.y + rect_0.height/2
- isMotorEnabled= true
- maxMotorTorque = 1000
- motorForce = 1
- motorSpeed = 10
- isLimitEnabled = false
- rotationX = rect_0.x
- rotationY = rect_0.y
