• Studio

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • API

    Datatypes

    Edit

    Ray

    Represents a line in 3D space extending indefinitely from a source point (origin) in a specified direction. It is utilized extensively for ray casting and collision detection.

    Properties

    Represents the starting point of the ray in 3D space.

    Depicts the path along which the ray extends in 3D space.

    Methods

    Retrieves a point along the ray at a specified distance from the origin.

    Parameters

    distance

    number

    The distance along the ray from the origin point.

    Returns

    Vector3

    Returns the point at the given distance along the ray.

    PocketWorlds Icon

    © 2024 Pocket Worlds. All rights reserved.