Class BodyDef

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

public class BodyDef extends Object
  • 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()