+void Node::CreateTransform( SceneGraph::TransformManager* transformManager )
+{
+ //Create a new transform
+ mTransformManager = transformManager;
+ mTransformId = transformManager->CreateTransform();
+
+ //Initialize all the animatable properties
+ mPosition.Initialize( transformManager, mTransformId );
+ mScale.Initialize( transformManager, mTransformId );
+ mUpdateSizeHint.Initialize( transformManager, mTransformId );
+ mOrientation.Initialize( transformManager, mTransformId );
+ mSize.Initialize( transformManager, mTransformId );
+ mParentOrigin.Initialize( transformManager, mTransformId );
+ mAnchorPoint.Initialize( transformManager, mTransformId );
+
+ //Initialize all the input properties
+ mWorldPosition.Initialize( transformManager, mTransformId );
+ mWorldScale.Initialize( transformManager, mTransformId );
+ mWorldOrientation.Initialize( transformManager, mTransformId );
+ mWorldMatrix.Initialize( transformManager, mTransformId );
+
+ //Set whether the position should use the anchor point
+ transformManager->SetPositionUsesAnchorPoint( mTransformId, mPositionUsesAnchorPoint );