Skip to main content

Entity::setCollision

Syntax​

```js entity.setCollision(toggle, keepPhysics); ```

Required Arguments​

  • toggle: Boolean
    • Setting 'toggle' to false will disable all collisions and you will fall through the world.
  • keepPhysics: Boolean

Return value​

  • Undefined

Example​

```js // todo ```

See also​