Click or drag to resize

PhysicsSandboxModel Class

The PhysicsSandbox defines a ruleset in form of parameters for a physics simulation.
Inheritance Hierarchy

Namespace:  Livit.Learn.Model
Assembly:  Livit.Learn.Model (in Livit.Learn.Model.dll) Version: 0.0.0.0
Syntax
C#
[SerializableAttribute]
public class PhysicsSandboxModel : TriggableModel

The PhysicsSandboxModel type exposes the following members.

Constructors
  NameDescription
Public methodPhysicsSandboxModel
Initializes a new instance of the PhysicsSandboxModel class
Top
Properties
  NameDescription
Public propertyAttached
Defines an attached property.
(Inherited from BaseModel.)
Public propertyBoundarySize
Size of the sandbox boundary as a Vector3. Default is (5,5,5)
Public propertyBoundarySizeSerialized
Size of the sandbox boundary, serialized. Default is (5,5,5)
Public propertyComments
(Development) Includes comments in the XML code.
(Inherited from BaseModel.)
Public propertyCompletedActions
Actions that are executed when the experiment completes
Public propertyCompletedWhen
All conditions that have to met for the experiment to complete
Public propertyCode exampleDataContext
Contains a source of all bindings defined for element.
(Inherited from BaseModel.)
Public propertyDataSets
Public propertyDescription
Displays a description of the object to the user.
(Inherited from TriggableModel.)
Public propertyExternalXmlPath (Inherited from BaseModel.)
Public propertyFailedActions
Actions that are executed when the experiment fails
Public propertyFailedWhen
All conditions that have to met for the experiment to fail
Public propertyFocusObject
Defines the focus target PhysicsObject of the physics sandbox which will be the center of this simulation and never moved.
Public propertyGravityDirection
The direction of gravity as a Vector3. Default is (0,-1,0)
Public propertyGravityDirectionSerialized
The direction of gravity as a serialized Vector3. Default is (0,-1,0)
Public propertyGravityForce
Force of gravity. Default is 9.81
Public propertyHeightAtZero
Height at surface position in m. Default is 0
Public propertyId
Defines a unique identifier for an element in the simulation.
(Inherited from BaseModel.)
Public propertyIsEnabled
Public propertyIsFailure
The physics experiment failed.
Public propertyIsIdAutogenerated (Inherited from BaseModel.)
Public propertyIsSuccess
The physics experiment succeeded.
Public propertyPhysicsCollisionConditions
Public propertyPhysicsCollisionConditionsSerialized
Public propertyPhysicsLayer
Defines the collision layer of the underlaying physics element. Default is PhysicLayer1
Public propertyPhysicsObjects
Public propertyPhysicsObjectsSerialized
Public propertyPositionScaleFactor
Factor used to scale the position of target elements of physics objects. Default is 1
Public propertySurfaceElement
Defines the Surface as a spacial center for the PhysicsSandbox simulation.
Public propertyTemplateVersionId
Contains a id of source template.
(Inherited from BaseModel.)
Public propertyTitle
Defines a title for the object.
(Inherited from TriggableModel.)
Public propertyTriggers (Inherited from TriggableModel.)
Public propertyTriggersSerialized
Lists the available Triggers for this object.
(Inherited from TriggableModel.)
Public propertyXmlComments
(Development) Used as temporary storage for XML comments (like ) to keep them.
(Inherited from BaseModel.)
Top
Methods
  NameDescription
Public methodDeepCopy
Creates an in-memory clone of this object using a BinaryFormatter to ensure all child properties are copied as well.
(Inherited from BaseModel.)
Public methodShallowCopy (Inherited from BaseModel.)
Public methodShouldSerializeTriggers (Inherited from TriggableModel.)
Public methodToString
Returns a string that represents the current object.
(Inherited from BaseModel.)
Public methodUpdateModels
This method will update this model and all its child models.
(Inherited from BaseModel.)
Top
Remarks

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.

See Also