Click or drag to resize

PhysicsObjectModel Class

The PhysicsObject defines physics parameters of one object contained in a PhysicsSandboxModel
Inheritance Hierarchy
SystemObject
  Livit.Learn.ModelBaseModel
    Livit.Learn.ModelPhysicsObjectModel

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

The PhysicsObjectModel type exposes the following members.

Constructors
  NameDescription
Public methodPhysicsObjectModel
Initializes a new instance of the PhysicsObjectModel class
Top
Properties
  NameDescription
Public propertyAttached
Defines an attached property.
(Inherited from BaseModel.)
Public propertyComments
(Development) Includes comments in the XML code.
(Inherited from BaseModel.)
Public propertyCode exampleDataContext
Contains a source of all bindings defined for element.
(Inherited from BaseModel.)
Public propertyExternalXmlPath (Inherited from BaseModel.)
Public propertyId
Defines a unique identifier for an element in the simulation.
(Inherited from BaseModel.)
Public propertyIsIdAutogenerated (Inherited from BaseModel.)
Public propertyIsStaticObject
Determines if a physics element is static. Default is false
Public propertyIsStaticObjectSerialized
Determines if a physics element is static, serialized. Default is false
Public propertyIsUsingPlanetaryGravity
Determines if a physics element is using the planetary gravity system. />
Public propertyPhysicsBounciness
Determines how much energy is transferred on collision. A value of 0.95f will transfer all energy. Default is 1 Maxed at .95 as a fix to unity rounding issues https://stackoverflow.com/a/23377473
Public propertyPhysicsColliderSize
Size of the collider of a physics element as a Vector3. Default is (1,1,1)
Public propertyPhysicsColliderType
Defines the type of the collider for a physics element. Default is Box
Public propertyPhysicsConcludedPosition
Updated position after simulation end
Public propertyPhysicsConcludedRotation
Updated rotation after simulation end
Public propertyPhysicsContinuousForce
A force applied continuously during simulation to a physics element as a Vector3. Default is (0,0,0)
Public propertyPhysicsDynamicFriction
Determines how much energy is needed to keep a moving physics element in motion. Usually a value from 0 to 1. Default is 0
Public propertyPhysicsInitialForce
A force applied once at simulation start to a physics element as a Vector3. Default is (0,0,0)
Public propertyPhysicsInitialPosition
Position at simulation start of a physics element as a Vector3. Default is (0,0,0)
Public propertyPhysicsInitialRotation
Rotation at simulation start of a physics element as a Vector3. Default is (0,0,0)
Public propertyPhysicsInitialVelocity
Velocity of a physics element applied once at simulation start as a Vector3. Default is (0,0,0)
Public propertyPhysicsMass
Determines the mass of the physics element in kg. Default is 1
Public propertyPhysicsStaticFriction
Determines how much energy is needed to set a static physics element into motion. Usually a value from 0 to 1. Default is 0
Public propertyTargetElement
Defines the target Element of the physics objects on which the view will match the object.
Public propertyTemplateVersionId
Contains a id of source template.
(Inherited from BaseModel.)
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 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

To make an ElementModel use physics, the TargetElement parameter should be set to that ElementModel

See Also