@kognifai/cogsengine
    Preparing search index...

    Class MarkerPointSetComponent

    ! Generate a set of points for the given position array.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    diffuseColor: vec4

    Points inner color.

    farDistance: number

    Don't display points further than this distance from the camera.

    isTyped: boolean

    Internal flag set if component is a Cogs Core component.

    nearDistance: number

    Don't display points closer than this distance from the camera.

    outline: number

    Outline size.

    outlineColor: vec4

    Points outline color.

    pointSize: number

    Points size.

    positions: Float32Array

    (Contents: vec3[]) Marker points positions.

    Specify the shape of the points.

    smooth: boolean

    Smooth out the point edges.

    Accessors

    • get entity(): Entity

      Gets the optional owning entity

      Returns Entity

    • set entity(entity: Entity): void

      Internal: set owning entity.

      Parameters

      Returns void

    • get name(): string

      Component name == type. For compatibility

      Returns string

    • get type(): string

      Gets the type of the component. Ex. "TransformComponent", "SceneComponent" etc.

      Returns string

    Methods

    • Internal: Creates a new component of the given type (name). Component is wrapped when adding to an entity.

      Parameters

      • type: string

        Type of the component. Ex. "TransformComponent"

      Returns Component

      Created Cogs.js component.

    • Internal: Creates a new component being wrapped as an existing member of the entity

      Parameters

      • type: string

        Type of the component. Ex. "TransformComponent"

      • entity: Entity

        The owning entity

      Returns Component

      Created Cogs.js component.