Physics Tools
Physics Tools Reference
Name | Icon | Description |
---|---|---|
Physics Body | ![]() | Defines the physical properties of an object, enabling it to interact with the physics engine. |
Physics Collision | ![]() | Sets up collision properties between objects. |
Physics Force | ![]() | Applies forces to objects, influencing their movement and behavior. |
Physics Joint | ![]() | Connects two physics bodies together, creating constraints and relationships between them. |
Physics Properties | ![]() | Modifies global physics properties. |
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