# Class BodyDef

java.lang.Object
com.codename1.gaming.physics.box2d.dynamics.BodyDef

public class BodyDef extends Object

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `boolean`
  `active`
  `boolean`
  `allowSleep`
  `float`
  `angle`
  `float`
  `angularDamping`
  `float`
  `angularVelocity`
  `boolean`
  `awake`
  `boolean`
  `bullet`
  `boolean`
  `fixedRotation`
  `float`
  `gravityScale`
  `float`
  `linearDamping`
  `Vec2`
  `linearVelocity`
  `Vec2`
  `position`
  `BodyType`
  `type`
  `Object`
  `userData`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BodyDef()`

- ## Method Summary

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### type

    public BodyType type

  - ### userData

    public Object userData

  - ### position

    public Vec2 position

  - ### angle

    public float angle

  - ### linearVelocity

    public Vec2 linearVelocity

  - ### angularVelocity

    public float angularVelocity

  - ### linearDamping

    public float linearDamping

  - ### angularDamping

    public float angularDamping

  - ### allowSleep

    public boolean allowSleep

  - ### awake

    public boolean awake

  - ### fixedRotation

    public boolean fixedRotation

  - ### bullet

    public boolean bullet

  - ### active

    public boolean active

  - ### gravityScale

    public float gravityScale

- ## Constructor Details

  - ### BodyDef

    public BodyDef()