Falcon
Public Member Functions | List of all members
PhysicsComponent Struct Reference

#include <PhysicsComponent.h>

Inheritance diagram for PhysicsComponent:
BasicComponent

Public Member Functions

 PhysicsComponent ()
 
 PhysicsComponent (Rigidbody *actor)
 
void SetBoxCollider (const float &halfX, const float &halfY, const float &halfZ)
 
void SetSphereCollider (const float &radius)
 
void SetCapsuleCollider (const float &radius, const float &halfHeight)
 
void SetMeshCollider (const glm::vec3 *vertexData, const int &count, const int &stride)
 
void SetCollider (Collider *m_collider)
 
bool SetPhysicsBodyType (const Transform *transform, physics::PhysicsBodyType type)
 
void AddToExclusiveShape (Rigidbody *actor, const Transform *transform, const glm::vec3 *vertexData, const int &count, const int &stride)
 
const ColliderGetCollider () const
 
const RigidbodyGetActor () const
 
 ~PhysicsComponent ()
 

Detailed Description

Structure Definition for holding data needed for calculating physics events on the entity.

Constructor & Destructor Documentation

◆ PhysicsComponent() [1/2]

PhysicsComponent::PhysicsComponent ( )
inline

◆ PhysicsComponent() [2/2]

PhysicsComponent::PhysicsComponent ( Rigidbody actor)
inline

◆ ~PhysicsComponent()

PhysicsComponent::~PhysicsComponent ( )
inline

Member Function Documentation

◆ AddToExclusiveShape()

void PhysicsComponent::AddToExclusiveShape ( Rigidbody actor,
const Transform transform,
const glm::vec3 *  vertexData,
const int &  count,
const int &  stride 
)
inline

◆ GetActor()

const Rigidbody* PhysicsComponent::GetActor ( ) const
inline

◆ GetCollider()

const Collider* PhysicsComponent::GetCollider ( ) const
inline

◆ SetBoxCollider()

void PhysicsComponent::SetBoxCollider ( const float &  halfX,
const float &  halfY,
const float &  halfZ 
)
inline

◆ SetCapsuleCollider()

void PhysicsComponent::SetCapsuleCollider ( const float &  radius,
const float &  halfHeight 
)
inline

◆ SetCollider()

void PhysicsComponent::SetCollider ( Collider m_collider)
inline

◆ SetMeshCollider()

void PhysicsComponent::SetMeshCollider ( const glm::vec3 *  vertexData,
const int &  count,
const int &  stride 
)
inline

◆ SetPhysicsBodyType()

bool PhysicsComponent::SetPhysicsBodyType ( const Transform transform,
physics::PhysicsBodyType  type 
)
inline

◆ SetSphereCollider()

void PhysicsComponent::SetSphereCollider ( const float &  radius)
inline

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