Reworked file structure

This commit is contained in:
antopilo
2025-01-30 22:41:17 -05:00
parent e8a84c98ec
commit 92a64f19ea
2215 changed files with 1832 additions and 2069 deletions

View File

@@ -0,0 +1,40 @@
#include "CharacterController.h"
#include "Nuake/Physics/PhysicsManager.h"
#include "Nuake/Physics/RaycastResult.h"
#include "Nuake/Physics/PhysicsManager.h"
namespace Nuake
{
namespace Physics
{
CharacterController::CharacterController(const CharacterControllerSettings& settings)
{
Shape = settings.Shape;
Friction = settings.Friction;
MaxSlopeAngle = settings.MaxSlopeAngle;
AutoStepping = settings.AutoStepping;
StepDown = settings.StepDown;
StepDownExtra = settings.StepDownExtra;
StepUp = settings.StepUp;
StepDistance = settings.StepDistance;
StepMinDistance = settings.StepMinDistance;
}
void CharacterController::SetEntity(Entity& ent)
{
Owner = ent;
}
Entity CharacterController::GetEntity() const
{
return Owner;
}
void CharacterController::MoveAndSlide(const Vector3& velocity)
{
PhysicsManager::Get().GetWorld()->MoveAndSlideCharacterController(Owner, velocity);
}
}
}