Class DistanceRelation
Inheritance
DistanceRelation
Syntax
[MonoBehaviourComponentMenu(typeof(DistanceRelation), "Relation/Distance")]
[CreateFromDataOptions(2, false)]
public class DistanceRelation : BoundedFloatRelation<Pose>, ISimulatable, IRelation<Pose>, IRelation, IRelationBase, IConditionBase, IRequiresTraits<Pose>, IRequiresTraits, ICreateFromDataPair, IConfigurableMatchRating, IRangeBoundingOptions<float>, IRangeBoundingOptions, ISpatialCondition, IUsesCameraOffset, IFunctionalitySubscriber<IProvidesCameraOffset>, IFunctionalitySubscriber, IAdjustableComponent
Properties
Adjusting
Declaration
public bool Adjusting { get; set; }
Property Value
Implements
provider
Declaration
public IProvidesCameraOffset provider { get; set; }
Property Value
Implements
Methods
Declaration
public override string FormatDataString(TraitDataSnapshot child1Data, TraitDataSnapshot child2Data)
Parameters
Returns
Overrides
Unity.MARS.Relation<Pose>.FormatDataString(Unity.MARS.TraitDataSnapshot, Unity.MARS.TraitDataSnapshot)
GetRequiredTraits()
Declaration
public override TraitRequirement[] GetRequiredTraits()
Returns
Overrides
OnEnable()
Declaration
OnRatingConfigChange()
Declaration
public override void OnRatingConfigChange()
Overrides
Unity.MARS.NonBinaryRelation<System.Single, Pose>.OnRatingConfigChange()
OnValidate()
Declaration
public override void OnValidate()
Overrides
OptimizeForData(TraitDataSnapshot, TraitDataSnapshot)
Declaration
public override void OptimizeForData(TraitDataSnapshot child1Data, TraitDataSnapshot child2Data)
Parameters
Overrides
Unity.MARS.Relation<Pose>.OptimizeForData(Unity.MARS.TraitDataSnapshot, Unity.MARS.TraitDataSnapshot)
RateDataMatch(ref Pose, ref Pose)
Declaration
public override float RateDataMatch(ref Pose child1Data, ref Pose child2Data)
Parameters
Type |
Name |
Description |
Pose |
child1Data |
|
Pose |
child2Data |
|
Returns
Overrides
Unity.MARS.Relation<Pose>.RateDataMatch(Pose, Pose)
Events
AdjustingChanged
Declaration
public event Action<bool> AdjustingChanged
Event Type
Implements
Extension Methods