mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Moved player input to physics
This commit is contained in:
parent
5f4b8c5b4b
commit
d522e0547d
1 changed files with 7 additions and 0 deletions
|
|
@ -48,6 +48,11 @@ public partial class IsoMovementModule : ModuleBase<PlayerState, CharacterBody3D
|
|||
}
|
||||
|
||||
public override void Process(double delta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void HandleMovementInput(double delta)
|
||||
{
|
||||
var movementInput = _inputProvider.GetMovementInput();
|
||||
|
||||
|
|
@ -126,6 +131,8 @@ public partial class IsoMovementModule : ModuleBase<PlayerState, CharacterBody3D
|
|||
|
||||
public override void PhysicsProcess(double delta)
|
||||
{
|
||||
HandleMovementInput(delta);
|
||||
|
||||
var v3 = MainObject.Velocity;
|
||||
var v = v3.ToVector2();
|
||||
float dt = (float)delta;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue