Class TrackingStateCondition
Represents a situation that depends on the quality of a tracked objects' tracking data
Inherited Members
Namespace: Unity.MARS.Conditions
Syntax
public class TrackingStateCondition : Condition<int>, ISimulatable, ICondition<int>, ICondition, IConditionBase, IRequiresTraits<int>, IRequiresTraits
Properties
MinimumState
Declaration
public MARSTrackingState MinimumState { get; set; }
Property Value
Type | Description |
---|---|
MARSTrackingState |
Methods
GetRequiredTraits()
Get the TraitRequirements that are required by this object
Declaration
public override TraitRequirement[] GetRequiredTraits()
Returns
Type | Description |
---|---|
TraitRequirement[] | The required traits |
Overrides
RateDataMatch(ref Int32)
Describe how well a given piece of data matches a condition. 0 means the match is unacceptable, 1 means a perfect match
Declaration
public override float RateDataMatch(ref int data)
Parameters
Type | Name | Description |
---|---|---|
Int32 | data |
Returns
Type | Description |
---|---|
Single | A number from 0 to 1 indicating how well a piece of data watches this condition |
Overrides
Unity.MARS.Condition<System.Int32>.RateDataMatch(System.Int32)