Skip to content

Commit

Permalink
Update transformation controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
ReMinoer committed Jul 27, 2022
1 parent 675500b commit ef22cd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Demos/Calame.Demo.Data/Data/Base/InstanceDataBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,21 @@ static InstanceDataBase()
Bindings.From(x => x.LocalScale).To(x => x.SceneNode.LocalScale);
}

bool IPositionController.IsLocalPosition => true;
Vector2 IPositionController.Position
{
get => LocalPosition;
set => LocalPosition = value;
}

bool IRotationController.IsLocalRotation => true;
float IRotationController.Rotation
{
get => LocalRotation;
set => LocalRotation = value;
}

bool IScaleController.IsLocalScale => true;
float IScaleController.Scale
{
get => LocalScale;
Expand Down

0 comments on commit ef22cd5

Please sign in to comment.