Class ColliderShape

Represents a single Collider shape.

Hierarchy

  • FrameworkObject
    • ColliderShape

Constructors

Accessors

  • get heightmapMesh(): MeshData
  • Gets the gizmo mesh for the heightmap, if this is a heightmap shape. May return outdated data otherwise.

    Returns MeshData

  • get layer(): rsx.LayerMask
  • Determines the layer of the collider. Layer controls with which objects will the collider collide.

    Returns rsx.LayerMask

  • set layer(value): void
  • Parameters

    Returns void

  • get mass(): number
  • Determines the mass of the collider. Only relevant if the collider is part of a rigidbody. Ultimately this will determine the total mass, center of mass and inertia tensors of the parent rigidbody (if they're being calculated automatically).

    Returns number

  • set mass(value): void
  • Parameters

    • value: number

    Returns void

  • get material(): PhysicsMaterial
  • Determines the physical material of the collider. The material determines how objects hitting the collider behave.

    Returns PhysicsMaterial

  • set material(value): void
  • Determines the physical material of the collider. The material determines how objects hitting the collider behave.

    Parameters

    Returns void

Methods

  • Infers the collider shape extents from the mesh that is on the same scene object of the parent collider.

    Returns void

  • Updates the internal shape to match the provided shape information.

    Parameters

    Returns any

  • Updates the internal shape to match the provided shape information.

    Parameters

    Returns any

  • Updates the internal shape to match the provided shape information.

    Parameters

    Returns any

  • Updates the internal shape to match the provided shape information.

    Parameters

    Returns any

  • Updates the internal shape to match the provided shape information.

    Parameters

    Returns any

  • Updates the internal shape to match the provided shape information.

    Parameters

    Returns any