21 lines
313 B
C++
21 lines
313 B
C++
#pragma once
|
|
#include "src/Physics/PhysicsShapes.h"
|
|
#include "src/Core/Core.h"
|
|
|
|
namespace Nuake
|
|
{
|
|
class CapsuleColliderComponent
|
|
{
|
|
public:
|
|
Ref<Physics::Capsule> Capsule;
|
|
|
|
float Radius = 0.5f;
|
|
float Height = 1.0f;
|
|
|
|
bool IsTrigger = false;
|
|
|
|
json Serialize();
|
|
bool Deserialize(const json& str);
|
|
};
|
|
}
|