building rotation
This commit is contained in:
parent
828016be6a
commit
bf28b50a83
@ -153,6 +153,11 @@ public partial class player : Camera3D
|
|||||||
{
|
{
|
||||||
CurrentBuilding.GlobalPosition = _cursorPoint.GlobalPosition;
|
CurrentBuilding.GlobalPosition = _cursorPoint.GlobalPosition;
|
||||||
|
|
||||||
|
if (Input.IsActionJustPressed("rotate"))
|
||||||
|
{
|
||||||
|
CurrentBuilding.RotateY(Mathf.DegToRad(90));
|
||||||
|
}
|
||||||
|
|
||||||
if (Input.IsActionJustPressed("build"))
|
if (Input.IsActionJustPressed("build"))
|
||||||
{
|
{
|
||||||
if (CurrentBuilding.IsPlaceable)
|
if (CurrentBuilding.IsPlaceable)
|
||||||
|
Loading…
Reference in New Issue
Block a user