Preparing search index...

    Class Shape

    Base type for collision shapes.

    Lens Scripting Version 157

    Hierarchy (View Summary)

    Index

    Methods

    • Create a BoxShape with default settings.

      Returns BoxShape

      Lens Scripting Version 157

    • Create a CapsuleShape with default settings.

      Returns CapsuleShape

      Lens Scripting Version 157

    • Create a ConeShape with default settings.

      Returns ConeShape

      Lens Scripting Version 169

    • Create a CylinderShape with default settings.

      Returns CylinderShape

      Lens Scripting Version 169

    • Create a LevelsetShape with default settings.

      Returns LevelsetShape

      Lens Scripting Version 157

    • Creates a new MeshShape.

      Returns MeshShape

      Lens Scripting Version 181

      // Change gravity in the root world.
      Physics.getRootWorldSettings().gravity = new vec3(0.0, -100.0, 0.0);
    • Create a SphereShape with default settings.

      Returns SphereShape

      Lens Scripting Version 157

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean