RSX Code Reference
    Preparing search index...
    • rsx
    • ColliderShape

    Class ColliderShape

    Represents a single Collider shape.

    Index
    • get heightmapMesh(): MeshData

      Gets the gizmo mesh for the heightmap, if this is a heightmap shape. May return outdated data otherwise.

      Returns MeshData

    • 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: number): 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: PhysicsMaterial): void

      Determines the physical material of the collider. The material determines how objects hitting the collider behave.

      Parameters

      Returns void

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

      Returns void