Lens Scripting API
    Preparing search index...

    Class Shape

    Base type for collision shapes.

    Hierarchy (View Summary)

    Index

    Methods

    • Create a BoxShape with default settings.

      Returns BoxShape

    • Creates a new MeshShape.

      Returns MeshShape

      // Change gravity in the root world.
      Physics.getRootWorldSettings().gravity = new vec3(0.0, -100.0, 0.0);
    • 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