sim.removeModel

Removes a model from the scene. Object destruction always destroys attached scripts before destroying the object itself. If a script destroys the object it is attached to, then the object is first destroyed, and the script destruction is delayed

Synopsis

int removedCnt = sim.removeModel(int objectHandle) int removedCnt = sim.removeModel(int objectHandle)

Arguments

  • objectHandle: handle of the model (i.e. object tagged as model) to remove

Return values

  • removedCnt: number of removed objects (a model might contain several objects)


See also: