Skip to main content

Entity::setCollision

Syntax​

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​

// todo