character controller is working
This commit is contained in:
1 parent
c12d653cbc
commit
43ddb1b3b5
460 files changed
+613
-115269
No files matched your search
@@ -1,3 +1,4 @@
|
||||
using Code.DI;
|
||||
using Code.Gameplay.Camera;
|
||||
using Code.Gameplay.Character.Controller;
|
||||
using Code.Input;
|
||||
@@ -15,6 +16,11 @@ namespace Code.Gameplay.Character.Core
|
||||
|
||||
private IInputService _inputService;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
_inputService = FindFirstObjectByType<DIContainer>().Resolve<IInputService>();
|
||||
}
|
||||
|
||||
public void Teleport(Vector3 position, Quaternion rotation)
|
||||
{
|
||||
customCharacterController.SetPosition(position);
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Code.Gameplay.Character.Controller
|
||||
public void SetPosition(Vector3 position) => motor.SetPosition(position);
|
||||
public void SetRotation(Quaternion rotation) => motor.SetRotation(rotation);
|
||||
|
||||
private void Construct()
|
||||
private void Start()
|
||||
{
|
||||
_inputHandler = new CharacterInputHandler(
|
||||
sprintAngleThreshold
|
||||
|
||||
Reference in new issue
Block a user