Class HasPoseCondition
Represents a situation that depends on the existence of a pose
Inheritance
HasPoseCondition
Inherited Members
Namespace: Unity.MARS.Conditions
Syntax
[HelpURL("https://docs.unity3d.com/Packages/com.unity.mars@1.5/manual/ReferenceGuideTraits.html#has-pose-condition-hasposecondition")]
[DisallowMultipleComponent]
[ComponentTooltip("Requires the object to have a pose (position).")]
[MonoBehaviourComponentMenu(typeof(HasPoseCondition), "Condition/Trait/Pose")]
[MovedFrom("Unity.MARS")]
public class HasPoseCondition : Condition<Pose>, ISimulatable, ICondition<Pose>, ICondition, IConditionBase, IRequiresTraits<Pose>, IRequiresTraits
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 Pose)
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 Pose data)
Parameters
Type | Name | Description |
---|---|---|
Pose | 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<UnityEngine.Pose>.RateDataMatch(UnityEngine.Pose)