Difference between revisions of "DOMInterpolation"

From Virtual World Web Wiki
Jump to: navigation, search
(Documentation for the DOMInterpolation class)
(Documentation for the DOMInterpolation class)
Line 1: Line 1:
 +
Largely superceeded by the [[DOMCurve]] 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:''' [[DOM Curves]]
 +
 
*'''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.
Line 6: Line 10:
 
===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;} }}
 +
::
 +
::The target orientation after the movement
  
 
:{{CSharp|Point3D Position {get; set;} }}
 
:{{CSharp|Point3D Position {get; set;} }}
Line 18: Line 26:
  
 
:{{CSharp|float Speed {get; set;} }}
 
:{{CSharp|float Speed {get; set;} }}
 +
::
 +
::The speed with which to move toward the Location
  
 
:{{CSharp|Point3D TargetPosition {get; set;} }}
 
:{{CSharp|Point3D TargetPosition {get; set;} }}
Line 24: Line 34:
  
 
:{{CSharp|DateTime Timestamp {get; set;} }}
 
:{{CSharp|DateTime Timestamp {get; set;} }}
 +
::
 +
::The starting time of the interpolation
  
 
:{{CSharp|double TimeTotal {get; set;} }}
 
:{{CSharp|double TimeTotal {get; set;} }}
Line 29: Line 41:
 
===Constructors===
 
===Constructors===
 
:{{CSharp|DOMInterpolation()}}
 
:{{CSharp|DOMInterpolation()}}
 +
::
 +
::Constructs a new DOMInterpolation with default settings
  
 
===Methods===
 
===Methods===

Revision as of 19:40, 4 April 2017

Largely superceeded by the DOMCurve 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: DOM Curves

  • 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
Point3D Position {get; set;}
Point3D PositionDelta {get; set;}
Point3D Rotation {get; set;}
Point3D RotationDelta {get; set;}
float Speed {get; set;}
The speed with which to move toward the Location
Point3D TargetPosition {get; set;}
Point3D TargetRotation {get; set;}
DateTime Timestamp {get; set;}
The starting time of the interpolation
double TimeTotal {get; set;}

Constructors

DOMInterpolation()
Constructs a new DOMInterpolation with default settings

Methods

void CalculateValues(DOMTransform parent)
bool CheckParent(DOMObject parent)
Called on DOMObject derived types just before they are added to the DOM to ensure their parent is appropriate.
void OnUpdate(object state)
bool Start()