PhysicsObjectModel Class |
Namespace: Livit.Learn.Model
[SerializableAttribute] public class PhysicsObjectModel : BaseModel
The PhysicsObjectModel type exposes the following members.
Name | Description | |
---|---|---|
![]() | PhysicsObjectModel | Initializes a new instance of the PhysicsObjectModel class |
Name | Description | |
---|---|---|
![]() | Attached |
Defines an attached property.
(Inherited from BaseModel.) |
![]() | Comments |
(Development) Includes comments in the XML code.
(Inherited from BaseModel.) |
![]() ![]() | DataContext |
Contains a source of all bindings defined for element.
(Inherited from BaseModel.) |
![]() | ExternalXmlPath | (Inherited from BaseModel.) |
![]() | Id |
Defines a unique identifier for an element in the simulation.
(Inherited from BaseModel.) |
![]() | IsIdAutogenerated | (Inherited from BaseModel.) |
![]() | IsStaticObject |
Determines if a physics element is static. Default is false |
![]() | IsStaticObjectSerialized |
Determines if a physics element is static, serialized. Default is false |
![]() | IsUsingPlanetaryGravity |
Determines if a physics element is using the planetary gravity system. />
|
![]() | PhysicsBounciness |
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
|
![]() | PhysicsColliderSize |
Size of the collider of a physics element as a Vector3. Default is (1,1,1) |
![]() | PhysicsColliderType |
Defines the type of the collider for a physics element. Default is Box |
![]() | PhysicsConcludedPosition |
Updated position after simulation end
|
![]() | PhysicsConcludedRotation |
Updated rotation after simulation end
|
![]() | PhysicsContinuousForce |
A force applied continuously during simulation to a physics element as a Vector3. Default is (0,0,0) |
![]() | PhysicsDynamicFriction |
Determines how much energy is needed to keep a moving physics element in motion.
Usually a value from 0 to 1. Default is 0 |
![]() | PhysicsInitialForce |
A force applied once at simulation start to a physics element as a Vector3. Default is (0,0,0) |
![]() | PhysicsInitialPosition |
Position at simulation start of a physics element as a Vector3. Default is (0,0,0) |
![]() | PhysicsInitialRotation |
Rotation at simulation start of a physics element as a Vector3. Default is (0,0,0) |
![]() | PhysicsInitialVelocity |
Velocity of a physics element applied once at simulation start as a Vector3. Default is (0,0,0) |
![]() | PhysicsMass |
Determines the mass of the physics element in kg. Default is 1 |
![]() | PhysicsStaticFriction |
Determines how much energy is needed to set a static physics element into motion.
Usually a value from 0 to 1. Default is 0 |
![]() | TargetElement |
Defines the target Element of the physics objects on which the view will match the object.
|
![]() | TemplateVersionId |
Contains a id of source template.
(Inherited from BaseModel.) |
![]() | 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.) |
![]() | 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.) |
To make an ElementModel use physics, the TargetElement parameter should be set to that ElementModel