entity.collisionSpheres

Revision as of 21:19, 23 May 2022 by Mex (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |type = property |class = entity |name = collisionSpheres |returnTypes = array<TSphere> |readonly = true |usage = fetch the collision sphere da...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Property Client Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline Read-Only

Available since Client 1.0.0

array<TSphere> entity.collisionSpheres

The entity.collisionSpheres property is used to fetch the collision sphere data for the entity.

Value

array<TSphere> An array containing the collision sphere data for the entity.
TSphere { CVector3D position, CVector3D radius }.
The array size is 2 * entity.collisionSphereCount.
For example, array index 0 contains a position for the first collision sphere, and array index 1 contains a radius for the first collision sphere.
readonly This property cannot be changed.

Types

Shared Building
Shared entity
Shared Object
Shared Ped
Shared Physical
Shared Player
Shared Vehicle

Notes

There aren't any notes for this property.

Examples

There aren't any examples for this property.

Compatibility

There isn't any compatibility information for this property.

Related

Client Related

      gta.undoEntityInvisibilitySettings

  entity.alpha
      entity.boundingCentre
      entity.boundingMax
      entity.boundingMin
      entity.boundingRadius
        entity.children
        entity.clearExistsFor
      entity.collisionBoxCount
      entity.collisionBoxes
      entity.collisionLineCount
      entity.collisionLines
      entity.collisionsEnabled
      entity.collisionSphereCount
      entity.collisionSpheres
      entity.collisionVertexCount
      entity.collisionVertices
        entity.dimension
      entity.distanceFromCentreOfMassToBaseOfModel
        entity.existsFor
        entity.getData
        entity.getRotation
        entity.heading
        entity.id
      entity.interior
        entity.isCreatedFor
        entity.isLocal
      entity.isOnScreen
        entity.isOwner
        entity.isSyncer
        entity.isType
      entity.markAsNoLongerNeeded
        entity.matrix
      entity.model
        entity.modelIndex
        entity.name
        entity.netFlags
      entity.onScreen
        entity.parent
        entity.position
        entity.removeAllData
        entity.removeData
        entity.resource
        entity.rotation
        entity.setData
        entity.setExistsFor
      entity.setProofs
        entity.setRotation
        entity.setSyncer
      entity.status
        entity.streamInDistance
        entity.streamOutDistance
        entity.syncer
        entity.syncerId
        entity.type
      entity.visible