0 votes
asked in Box2D by (8.2k points)

  I am new box2d can you please explain the physics body type and sample code also?

1 Answer

0 votes
answered by (2.6k points)

ype of bodies

In box2d there are 3 kinds of bodies

1. Static - These stay fixed at a place and do not move. Like a wall or the floor

2. Kinematic - These move according to their velocity and do not respond to forces acting on it.

3. Dynamic - These are the bodies that move in the simulation according to the forces acting on it. Like the game characters. Dynamic bodies can collide with all other kinds of bodies.