Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PartArrows

A part that can show arrows in a MarkupModel.

Use MarkupModel.addArrowsPart to create a new instance of this class.

Hierarchy

Index

Accessors

color

color: Color3Like

The single color of all arrows

customData

customData: any

Custom data for the part. This field is not used by C3.

Methods

addArrow

  • Add an arrow with position and direction to the part

    Parameters

    Returns void

rayIntersect

  • Not implemented, always returns false

    Parameters

    Returns boolean

removeAllArrows

  • removeAllArrows(): void
  • Remove all arrows from the part

    Returns void

setArrows

  • setArrows(vertexArray: ArrayLike<number>, vectorArray: ArrayLike<number>): void
  • Sets the arrows by providing the vertices (start points) and the vectors (direction and length)

    The coordinates and vectors need to be interleaved (x0, y0, z0, x1, y1, z1, ...)

    Parameters

    • vertexArray: ArrayLike<number>
    • vectorArray: ArrayLike<number>

    Returns void

setArrowsFloat32Array

  • setArrowsFloat32Array(vertexArray: Float32Array, vectorArray: Float32Array): void
  • Sets the arrows by providing the vertices (start points) and the vectors (direction and length)

    The coordinates and vectors need to be interleaved (x0, y0, z0, x1, y1, z1, ...)

    This is the most optimal setting as the PartArrows will just hold a reference to the passed array and not copy any data.

    Parameters

    • vertexArray: Float32Array
    • vectorArray: Float32Array

    Returns void

Generated using TypeDoc