Difference between revisions of "DOMInterpolation"

From Virtual World Web Wiki
Jump to: navigation, search
(Documentation for the DOMInterpolation class)
(Documentation for the DOMInterpolation class)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
Largely superceeded by the [[Curves]] system, this node can be applied as a child to a [[DOMTransform]] derived node to cause it to move smothly (on the client side)
 +
 +
'''See also:''' [[DOMCurve]]
 +
 
*'''Inherits class: [[DOMObject]]'''
 
*'''Inherits class: [[DOMObject]]'''
 
* This is a leaf node type. This node type cannot have children.
 
* This is a leaf node type. This node type cannot have children.
 
===Remarks <nowiki>[</nowiki>[{{fullurl:DOMInterpolation Remarks|action=edit}} edit]<nowiki>]</nowiki>===
 
===Remarks <nowiki>[</nowiki>[{{fullurl:DOMInterpolation Remarks|action=edit}} edit]<nowiki>]</nowiki>===
{{:DOMInterpolation Remarks}}
+
{{#ifexist:DOMInterpolation Remarks|{{:DOMInterpolation Remarks}}|}}
  
 
===Properties===
 
===Properties===
 
:{{CSharp|Point3D Location {get; set;} }}
 
:{{CSharp|Point3D Location {get; set;} }}
 +
::
 +
::The target location of the movement
  
 
:{{CSharp|Point3D Orientation {get; set;} }}
 
:{{CSharp|Point3D Orientation {get; set;} }}
 
+
::
:{{CSharp|Point3D Position {get; set;} }}
+
::The target orientation after the movement
 
+
:{{CSharp|Point3D PositionDelta {get; set;} }}
+
 
+
:{{CSharp|Point3D Rotation {get; set;} }}
+
 
+
:{{CSharp|Point3D RotationDelta {get; set;} }}
+
  
 
:{{CSharp|float Speed {get; set;} }}
 
:{{CSharp|float Speed {get; set;} }}
 
+
::
:{{CSharp|Point3D TargetPosition {get; set;} }}
+
::The speed with which to move toward the Location
 
+
:{{CSharp|Point3D TargetRotation {get; set;} }}
+
  
 
:{{CSharp|DateTime Timestamp {get; set;} }}
 
:{{CSharp|DateTime Timestamp {get; set;} }}
 
+
::
:{{CSharp|double TimeTotal {get; set;} }}
+
::The starting time of the interpolation
  
 
===Constructors===
 
===Constructors===
 
:{{CSharp|DOMInterpolation()}}
 
:{{CSharp|DOMInterpolation()}}
 +
::
 +
::Constructs a new DOMInterpolation with default settings
 +
 +
:{{CSharp|DOMInterpolation(string title)}}
 +
::
 +
::Constructs a new DOMInterpolation, setting a title and adding children at the same time
  
 
===Methods===
 
===Methods===
:{{CSharp|void CalculateValues(DOMTransform parent)}}
 
 
 
:{{CSharp|bool CheckParent(DOMObject parent)}}
 
:{{CSharp|bool CheckParent(DOMObject parent)}}
 
::
 
::
 
::Called on DOMObject derived types just before they are added to the DOM to ensure their parent is appropriate.
 
::Called on DOMObject derived types just before they are added to the DOM to ensure their parent is appropriate.
 
:{{CSharp|void OnUpdate(object state)}}
 
 
:{{CSharp|bool Start()}}
 
  
 
__NOTOC____NOEDITSECTION__
 
__NOTOC____NOEDITSECTION__

Latest revision as of 14:13, 19 February 2019

Largely superceeded by the Curves system, this node can be applied as a child to a DOMTransform derived node to cause it to move smothly (on the client side)

See also: DOMCurve

  • Inherits class: DOMObject
  • This is a leaf node type. This node type cannot have children.

Remarks [edit]

Properties

Point3D Location {get; set;}
The target location of the movement
Point3D Orientation {get; set;}
The target orientation after the movement
float Speed {get; set;}
The speed with which to move toward the Location
DateTime Timestamp {get; set;}
The starting time of the interpolation

Constructors

DOMInterpolation()
Constructs a new DOMInterpolation with default settings
DOMInterpolation(string title)
Constructs a new DOMInterpolation, setting a title and adding children at the same time

Methods

bool CheckParent(DOMObject parent)
Called on DOMObject derived types just before they are added to the DOM to ensure their parent is appropriate.