World transision WIP
This commit is contained in:
@@ -129,5 +129,11 @@ public partial class Player3D : CharacterBody3D
|
||||
animatedSprite.Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void Teleport(Vector3 newPosition)
|
||||
{
|
||||
GlobalPosition = newPosition;
|
||||
ResetPhysicsInterpolation();
|
||||
GD.Print("Player Teleported");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,11 @@ public partial class VesnaBehaviour : Node
|
||||
{
|
||||
_farmingControls.FieldParent = _fieldParent;
|
||||
}
|
||||
|
||||
public void TeleportTo(Vector3 newPosition)
|
||||
{
|
||||
GetNode<Player3D>("CharacterBody3D").Teleport(newPosition);
|
||||
}
|
||||
|
||||
#region Farming
|
||||
|
||||
|
||||
Reference in New Issue
Block a user