 |
ModelNodeGetCenterPosition Method |
Returns center position of this ModelNode.
Center position is calculated from the center position of the mesh that is
transformed by the
Transform (when applyTransformation is true).
When mesh is not defined, then (0, 0, 0) is returned (regardless of the Transformation).
Namespace: Ab4d.SharpEngine.SceneNodesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntaxpublic override Vector3 GetCenterPosition(
bool applyTransformation = true,
bool updateIfDirty = true
)
Parameters
- applyTransformation Boolean (Optional)
- when true (by default), then mesh center is transformed by Transform
- updateIfDirty Boolean (Optional)
- when true (by default), then mesh is updated if it is dirty
Return Value
Vector3center position
See Also