q5play
    Preparing search index...

    Class Sensor

    Sensor are added to a sprite's physics body to detect overlaps without causing physical collisions.

    Don't create Sensors directly; use Sprite.addSensor() instead.

    Hierarchy (View Summary)

    Index
    _isSensor: boolean
    density: number
    geom: any
    sprite: Sprite
    type: string
    • Parameters

      • speed: number
      • angle: number
      • Optionaldrag: number
      • Optionallift: number

      Returns void