PhysicsSandboxModel Class |
Namespace: Livit.Learn.Model
[SerializableAttribute] public class PhysicsSandboxModel : TriggableModel
The PhysicsSandboxModel type exposes the following members.
Name | Description | |
---|---|---|
![]() | PhysicsSandboxModel | Initializes a new instance of the PhysicsSandboxModel class |
Name | Description | |
---|---|---|
![]() | Attached |
Defines an attached property.
(Inherited from BaseModel.) |
![]() | BoundarySize |
Size of the sandbox boundary as a Vector3. Default is (5,5,5) |
![]() | BoundarySizeSerialized |
Size of the sandbox boundary, serialized. Default is (5,5,5) |
![]() | Comments |
(Development) Includes comments in the XML code.
(Inherited from BaseModel.) |
![]() | CompletedActions |
Actions that are executed when the experiment completes
|
![]() | CompletedWhen |
All conditions that have to met for the experiment to complete
|
![]() ![]() | DataContext |
Contains a source of all bindings defined for element.
(Inherited from BaseModel.) |
![]() | DataSets | |
![]() | Description |
Displays a description of the object to the user.
(Inherited from TriggableModel.) |
![]() | ExternalXmlPath | (Inherited from BaseModel.) |
![]() | FailedActions |
Actions that are executed when the experiment fails
|
![]() | FailedWhen |
All conditions that have to met for the experiment to fail
|
![]() | FocusObject |
Defines the focus target PhysicsObject of the physics sandbox which will be the center of this simulation and never moved.
|
![]() | GravityDirection |
The direction of gravity as a Vector3. Default is (0,-1,0) |
![]() | GravityDirectionSerialized |
The direction of gravity as a serialized Vector3. Default is (0,-1,0) |
![]() | GravityForce |
Force of gravity. Default is 9.81 |
![]() | HeightAtZero |
Height at surface position in m. Default is 0 |
![]() | Id |
Defines a unique identifier for an element in the simulation.
(Inherited from BaseModel.) |
![]() | IsEnabled | |
![]() | IsFailure |
The physics experiment failed.
|
![]() | IsIdAutogenerated | (Inherited from BaseModel.) |
![]() | IsSuccess |
The physics experiment succeeded.
|
![]() | PhysicsCollisionConditions | |
![]() | PhysicsCollisionConditionsSerialized | |
![]() | PhysicsLayer |
Defines the collision layer of the underlaying physics element. Default is PhysicLayer1 |
![]() | PhysicsObjects | |
![]() | PhysicsObjectsSerialized | |
![]() | PositionScaleFactor |
Factor used to scale the position of target elements of physics objects. Default is 1 |
![]() | SurfaceElement |
Defines the Surface as a spacial center for the PhysicsSandbox simulation.
|
![]() | TemplateVersionId |
Contains a id of source template.
(Inherited from BaseModel.) |
![]() | Title |
Defines a title for the object.
(Inherited from TriggableModel.) |
![]() | Triggers | (Inherited from TriggableModel.) |
![]() | TriggersSerialized |
Lists the available Triggers for
this object.
(Inherited from TriggableModel.) |
![]() | XmlComments |
(Development) Used as temporary storage for XML comments (like ) to keep them.
(Inherited from BaseModel.) |
Name | Description | |
---|---|---|
![]() | DeepCopy |
Creates an in-memory clone of this object using a BinaryFormatter to ensure all child properties are copied as well.
(Inherited from BaseModel.) |
![]() | ShallowCopy | (Inherited from BaseModel.) |
![]() | ShouldSerializeTriggers | (Inherited from TriggableModel.) |
![]() | ToString |
Returns a string that represents the current object.
(Inherited from BaseModel.) |
![]() | UpdateModels |
This method will update this model and all its child models.
(Inherited from BaseModel.) |
A PhysicsSandbox contains references to PhysicsObjectModel, which will be used for simulation.
To control a PhysicsSandbox use SimulatePhysicsSandboxModel, PauseOrResumePhysicsSandboxModel, ResetPhysicsSandboxModel
To advance a Task dependent on a PhysicsSandbox simulation, you should add ConditionModel to the CompletedWhen collection and add ActionModel the CompleteActions respectively. Never bind to anything inside a PhysicsSandbox directly.