tags: physics title: Kinematic physics brief: This example shows a simple setup with a kinematic physics objects. The difference between dynamic objects, simulated by the physics engine, and kinematic objects, that are user controlled, is clearly seen here. author: Defold Foundation
The setup consists of three game objects. The game.project physics GravityY property is set to -500 to match the scale of the setup.
block : The square stone block. Contains:
KINEMATIC
. A box Shape matching the sprite image is added to the components.block2 : The rectangular stone block. Contains:
DYNAMIC
, Friction set to 0 and Restitution to 1.0. A box Shape matching the sprite image is added to the components.walls : The outer walls. Contains:
STATIC
. 4 box Shapes are added to the component. These are placed just outside of the game view.