Interface MeshColliderComponentDefinitionExtended

Hierarchy

Properties

componentId: number
componentName: string
componentType: LastWriteWinElementSet

Methods

  • Delete the current component to an entity, return null if the entity doesn't have the current component.

    • Internal comment: This method adds the <entity,component> to the list to be reviewed next frame

    Parameters

    • entity: Entity

      Entity to delete the component from

    Returns null | PBMeshCollider

  • Marks the entity as deleted and signals it cannot be used ever again. It must clear the component internal state, produces a synchronization message to remove the component from the entity.

    Parameters

    • entity: Entity

      Entity ID that was deleted.

    • markAsDirty: boolean

    Returns void

  • Set a box in the MeshCollider component

    Parameters

    Returns void

  • Set a cylinder in the MeshCollider component

    Parameters

    • entity: Entity

      entity to create or replace the MeshCollider component

    • Optional radiusBottom: number

      radius of bottom of cylinder

    • Optional radiusTop: number

      radius of top of cylinder

    • Optional colliderLayers: ColliderLayer | ColliderLayer[]

    Returns void

  • Set a plane in the MeshCollider component

    Parameters

    Returns void

  • Set a sphere in the MeshCollider component

    Parameters

    Returns void