Перейти к основному содержанию

ICRender.CollisionEntry

Object representing collision shape entry with it's displaying condition.

Index

Methods

addBox

  • addBox(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number): CollisionEntry
  • Adds new collision box to collision entry.


    Parameters

    • x1: number
    • y1: number
    • z1: number
    • x2: number
    • y2: number
    • z2: number

    Returns CollisionEntry

    Reference to itself to be used in sequential calls.

setCondition

  • Sets condition, all the boxes of the entry work only if the condition is true.


    Parameters

    Returns CollisionEntry

    Reference to itself to be used in sequential calls.