Click or drag to resize
Ab4d.SharpEngine logo

MultiMaterialModelNodeGetCenterPosition Method

Returns center position of this MultiMaterialModelNode. Center position is calculated from the center position of the bounding box that is transformed by the Transform (when applyTransformation parameter is true). When mesh is not defined or no sub meshes are added, then (0, 0, 0) is returned (regardless of the Transformation).

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public 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

Vector3
center position or (0, 0, 0) when mesh is not defined or no sub meshes are added
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneNodes.MultiMaterialModelNode.GetCenterPosition(System.Boolean,System.Boolean)"]

See Also