Class SynthesizedBody
Creates data for a MarsBody When added to a synthesized object, adds a trackable IMRBody to the database.
Inherited Members
Namespace: Unity.MARS.Data.Synthetic
Syntax
public class SynthesizedBody : SynthesizedTrackable<IMarsBody>, ISimulatable, ISynthesizedData, IProvidesTraits<bool>, IProvidesTraits, IUsesMARSTrackableData<IMarsBody>, IUsesCameraOffset, IFunctionalitySubscriber<IProvidesCameraOffset>
Properties
TraitName
The trait which will be added to the associated SynthesizedObject
Declaration
public override string TraitName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
Methods
GetData()
Get the IMarsBody data for this body
Declaration
public override IMarsBody GetData()
Returns
Type | Description |
---|---|
IMarsBody | The IMarsBody data |
Overrides
Unity.MARS.Data.Synthetic.SynthesizedTrackable<Unity.MARS.Data.IMarsBody>.GetData()
Initialize()
Called by MARS when the SynthesizedObject is initialized
Declaration
public override void Initialize()
Overrides
Terminate()
Called when this body is removed from the MARS database
Declaration
public override void Terminate()