simGetObjectColor

Retrieves the color of a scene object

C++ synopsis

int simGetObjectColor(int objectHandle, int index, int colorComponent, float* rgbData)

Arguments

  • objectHandle: handle of the object
  • index: the zero-based index of the color, if the object has several colors
  • colorComponent: a color component.
  • rgbData (output): red, green and blue components of the color (3 values)

Return

  • -1 if operation was not successful. 0 if the color index was not found in the object. 1 otherwise.


See also: