Function createRigidBody

  • Parameters

    • world: World
    • center: Vector2
    • mass: number
    • friction: number
    • restitution: number
    • shapes: Shape[]
    • Optional data: any
    • floating: boolean = false

    Returns Body