{
/* TEST CODE */
View actor = new View();
+ actor.Size2D = new Size2D(100, 100);
Position position = new Position(6.0f, 6.0f, 6.0f);
- actor.Position = position;
-
+ actor.Position = position;\r
+\r
+ actor.PositionUsesPivotPoint = true;
actor.PivotPoint = PivotPoint.Center;
actor.ParentOrigin = PivotPoint.Center;
View parentActor = new View();
+ parentActor.Size2D = new Size2D(100, 100);
Position parentPosition = new Position(1.0f, 2.0f, 3.0f);
parentActor.Position = parentPosition;
+
+ parentActor.PositionUsesPivotPoint = true;
parentActor.PivotPoint = PivotPoint.Center;
parentActor.ParentOrigin = PivotPoint.Center;
{
/* TEST CODE */
View parentActor = new View();
+ parentActor.Size2D = new Size2D(100, 100);
Position parentPosition = new Position(1.0f, 2.0f, 3.0f);
parentActor.Position = parentPosition;
+ parentActor.PositionUsesPivotPoint = true;
parentActor.PivotPoint = new Position(0.5f, 0.5f, 0.5f);
parentActor.ParentOrigin = new Position(0.5f, 0.5f, 0.5f);
Window.Instance.GetDefaultLayer().Add(parentActor);
View actor = new View();
+ actor.Size2D = new Size2D(100, 100);
Position position = new Position(10.0f, 11.0f, 12.0f);
actor.Position = position;
+ actor.PositionUsesPivotPoint = true;
actor.PivotPoint = new Position(0.5f, 0.5f, 0.5f);
actor.ParentOrigin = new Position(0.5f, 0.5f, 0.5f);
actor.InheritPosition = true;