|
NoJobEngine 2.0.7
|
#include <PhysicsSystem.h>
Classes | |
| struct | Implementation |
Public Member Functions | |
| PhysicsSystem () | |
| ~PhysicsSystem () | |
| PhysicsSystem (const PhysicsSystem &)=delete | |
| PhysicsSystem & | operator= (const PhysicsSystem &)=delete |
| void | Start (Scene &scene) |
| void | Stop () |
| void | Update (float deltaTime) |
| bool | IsRunning () const |
| bool | AddForce (std::uint64_t entityID, const glm::vec3 &force) |
| bool | AddImpulse (std::uint64_t entityID, const glm::vec3 &impulse) |
| bool | SetLinearVelocity (std::uint64_t entityID, const glm::vec3 &velocity) |
| glm::vec3 | GetLinearVelocity (std::uint64_t entityID) const |
| std::optional< RaycastHit > | Raycast (const glm::vec3 &origin, const glm::vec3 &direction, float maxDistance=1000.0f) const |
| const std::vector< TriggerEvent > & | GetTriggerEvents () const |
| bool | HasObstacleBetween (const glm::vec3 &origin, const glm::vec3 &destination, std::uint64_t observerID, std::uint64_t targetID) const |
Definition at line 37 of file PhysicsSystem.h.
| NoJob::PhysicsSystem::PhysicsSystem | ( | ) |
Definition at line 237 of file PhysicsSystem.cpp.
Referenced by operator=(), and PhysicsSystem().
| NoJob::PhysicsSystem::~PhysicsSystem | ( | ) |
Definition at line 248 of file PhysicsSystem.cpp.
References Stop().
|
delete |
References PhysicsSystem().
| bool NoJob::PhysicsSystem::AddForce | ( | std::uint64_t | entityID, |
| const glm::vec3 & | force ) |
Definition at line 478 of file PhysicsSystem.cpp.
| bool NoJob::PhysicsSystem::AddImpulse | ( | std::uint64_t | entityID, |
| const glm::vec3 & | impulse ) |
Definition at line 491 of file PhysicsSystem.cpp.
| glm::vec3 NoJob::PhysicsSystem::GetLinearVelocity | ( | std::uint64_t | entityID | ) | const |
Definition at line 517 of file PhysicsSystem.cpp.
|
inline |
Definition at line 61 of file PhysicsSystem.h.
| bool NoJob::PhysicsSystem::HasObstacleBetween | ( | const glm::vec3 & | origin, |
| const glm::vec3 & | destination, | ||
| std::uint64_t | observerID, | ||
| std::uint64_t | targetID ) const |
Definition at line 561 of file PhysicsSystem.cpp.
|
inline |
Definition at line 49 of file PhysicsSystem.h.
|
delete |
References PhysicsSystem(), Start(), Stop(), and Update().
| std::optional< RaycastHit > NoJob::PhysicsSystem::Raycast | ( | const glm::vec3 & | origin, |
| const glm::vec3 & | direction, | ||
| float | maxDistance = 1000.0f ) const |
Definition at line 528 of file PhysicsSystem.cpp.
References NoJob::RaycastHit::Distance, NoJob::RaycastHit::EntityID, and NoJob::RaycastHit::Point.
| bool NoJob::PhysicsSystem::SetLinearVelocity | ( | std::uint64_t | entityID, |
| const glm::vec3 & | velocity ) |
Definition at line 504 of file PhysicsSystem.cpp.
| void NoJob::PhysicsSystem::Start | ( | Scene & | scene | ) |
| void NoJob::PhysicsSystem::Stop | ( | ) |
Definition at line 288 of file PhysicsSystem.cpp.
Referenced by operator=(), Start(), and ~PhysicsSystem().
| void NoJob::PhysicsSystem::Update | ( | float | deltaTime | ) |
Definition at line 421 of file PhysicsSystem.cpp.
Referenced by operator=().