VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
vex::CharacterComponent Struct Reference

Character component for player or NPC characters. More...

#include <CharacterComponent.hpp>

Public Member Functions

bool isInitialized () const
bool isSupported () const

Public Attributes

JPH::Ref< JPH::CharacterVirtual > character = nullptr
float standingHeight = 1.35f
float standingRadius = 0.3f
float mass = 70.0f
float maxSlopeAngle = 45.0f
glm::vec3 controlInput = glm::vec3(0.0f)
float verticalVelocity = 0.0f

Detailed Description

Character component for player or NPC characters.

Definition at line 8 of file CharacterComponent.hpp.

Member Function Documentation

◆ isInitialized()

bool vex::CharacterComponent::isInitialized ( ) const
inline

Definition at line 19 of file CharacterComponent.hpp.

◆ isSupported()

bool vex::CharacterComponent::isSupported ( ) const
inline

Definition at line 20 of file CharacterComponent.hpp.

Member Data Documentation

◆ character

JPH::Ref<JPH::CharacterVirtual> vex::CharacterComponent::character = nullptr

Definition at line 9 of file CharacterComponent.hpp.

◆ controlInput

glm::vec3 vex::CharacterComponent::controlInput = glm::vec3(0.0f)

Definition at line 16 of file CharacterComponent.hpp.

◆ mass

float vex::CharacterComponent::mass = 70.0f

Definition at line 13 of file CharacterComponent.hpp.

◆ maxSlopeAngle

float vex::CharacterComponent::maxSlopeAngle = 45.0f

Definition at line 14 of file CharacterComponent.hpp.

◆ standingHeight

float vex::CharacterComponent::standingHeight = 1.35f

Definition at line 11 of file CharacterComponent.hpp.

◆ standingRadius

float vex::CharacterComponent::standingRadius = 0.3f

Definition at line 12 of file CharacterComponent.hpp.

◆ verticalVelocity

float vex::CharacterComponent::verticalVelocity = 0.0f

Definition at line 17 of file CharacterComponent.hpp.


The documentation for this struct was generated from the following file: