VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
CharacterComponent.hpp
1#pragma once
2#include "../JoltSafe.hpp"
3#include <glm/glm.hpp>
4
5namespace vex {
6
9 JPH::Ref<JPH::CharacterVirtual> character = nullptr;
10
11 float standingHeight = 1.35f;
12 float standingRadius = 0.3f;
13 float mass = 70.0f;
14 float maxSlopeAngle = 45.0f;
15
16 glm::vec3 controlInput = glm::vec3(0.0f);
17 float verticalVelocity = 0.0f;
18
19 bool isInitialized() const { return character != nullptr; }
20 bool isSupported() const { return character->IsSupported(); }
21};
22
23}
This file exist only because of coliding macros.
Character component for player or NPC characters.