 |
ModelUtilsPositionSceneNode Method |
PositionSceneNode method translates the sceneNode so that it is positioned according to position and positionType parameters.
This method may call
Update method in case the BoundingBox is Empty.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntaxpublic static void PositionSceneNode(
SceneNode sceneNode,
Vector3 position,
PositionTypes positionType,
bool preserveCurrentTransformation = true
)
Parameters
- sceneNode SceneNode
- SceneNode to position
- position Vector3
- Vector3 that specifies position of the sceneNode
- positionType PositionTypes
- type of position
- preserveCurrentTransformation Boolean (Optional)
- if true, then the translate and scale transform are added to the existing transform.
See Also