Jump to content

Component State parameter


photo

Recommended Posts

When Test by  Hemu, I got "255" for component state value. (in ComponentPacket of  LandingGears, LightAircraftController......)

What does the value of this component state mean in general?

I read Cigi's document but I didn't understand it.image.png.ca7c4ea5ea3b02a38fbe1aec3353bcac.png

image.png.7832978eb8a7fb5de0f4089318c416da.png

Link to comment

Hello,

A component can work with State or with Data values. We're currently using Component-Specific Data. The state is some pre-defined value. For instance, landing gears can have two states: deployed and retracted.

Quote

What does the value of this component state mean in general?

The value in the selected field controls the value of a property as described here: https://developer.unigine.com/en/docs/2.7.3/ig/properties_setup

Are you experiencing some problems with this?

Thanks.

  • Like 1

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment

image.png.fe4164793f35f8e6f46e9fdcc3c2dac9.png

I understand. thank you.

 

Data1~6 parameter type can be only Basic data type(int,float...)???  can't be type such as vector?

Edited by dongju.jeong
Link to comment
3 hours ago, dongju.jeong said:

Data1~6 parameter type can be only Basic data type(int,float...)???  can't be type such as vector?

yes, only basic data type. it`s defined in CIGI 3.3  (4-byte word)
if you want send vector - use {data1,data2,data3}. 

state in ig_config.xml was written for example settings only.
You can write your custom components using state. 

5458-component-state-parameter.png

Link to comment
×
×
  • Create New...