Click or drag to resize
Ab4d.SharpEngine logo

SphereModelNodeGetCenterPosition Method

Returns center position of this sphere. When applyTransformation is true (by default), then center position is also transformed by Transform.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
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 of the sphere
See Also