Box2d Physics Object type?

0 votes
asked May 3 in Box2D by admin (8,115 points)

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

1 Answer

0 votes
answered May 3 by codeg (2,600 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.