SceneObjectImage

Extends: SceneObjectBillboard

Properties

  • drawable (Image)
  • frameNumber (integer)

Constructor

new SceneObjectImage( name: string, drawableObj: Image, ): SceneObjectImage

Parameters

  • name (string)
  • drawableObj (Image)

Instance Methods

getBoundingPoints(cameraObj: Camera): dynamic

An image always has a real width/height, unlike SceneObjectPolygon/SceneObjectModel (see the comment on SceneObjectBillboard.computeBillboardWorldCorners()) - so this overrides the base SceneObject.getBoundingPoints() wrapper to always return the object's 4 world-space corners rather than the frustum check's single-point shortcut in screen-aligned draw modes.

Parameters

Returns

  • dynamic — the object's 4 world-space corners

getUniqueRegionName(): string

protected

Returns

  • string

getRegionWithIdToDraw( rendererObj: BGE.Renderer, ): BGE.RendererHelpers.RegionWithId

protected

Parameters

Returns

  • BGE.RendererHelpers.RegionWithId

afterDraw(): void

protected

Returns

  • void

didRegionToDrawChange(): boolean

protected

Returns

  • boolean