#include <sysorbit.h>
|
| void | ParseOrbitTree (entt::entity parent, entt::entity body) |
| |
| void | LeaveSOI (const entt::entity &body, entt::entity &parent, components::types::Orbit &orb, components::types::Kinematics &pos, components::types::Kinematics &p_pos) |
| | Sets the SOI of the entity to the parent More...
|
| |
| bool | CheckEnterSOI (const entt::entity &parent, const entt::entity &body) |
| | Change the current body's SOI into a child SOI More...
|
| |
| bool | CrashObject (components::types::Orbit &orb, entt::entity body, entt::entity parent) |
| | Check if the entity has crashed into its parent object More...
|
| |
| void | UpdateCommandQueue (components::types::Orbit &orb, entt::entity body, entt::entity parent) |
| |
| void | CalculateImpulse (components::types::Orbit &orb, entt::entity body, entt::entity parent) |
| |
| void | ParseChildren (entt::entity body) |
| |
| void | EnterSOI (entt::entity entity, entt::entity body, entt::entity parent, components::types::Orbit &orb, components::types::Kinematics &vehicle_position, const components::bodies::Body &body_comp, const components::types::Kinematics &target_position) |
| |
◆ SysOrbit()
| cqsp::common::systems::SysOrbit::SysOrbit |
( |
Game & |
game | ) |
|
|
inlineexplicit |
◆ CalculateImpulse()
| void cqsp::common::systems::SysOrbit::CalculateImpulse |
( |
components::types::Orbit & |
orb, |
|
|
entt::entity |
body, |
|
|
entt::entity |
parent |
|
) |
| |
|
private |
Adds an impulse in the body centered inertial frame
◆ CheckEnterSOI()
| bool cqsp::common::systems::SysOrbit::CheckEnterSOI |
( |
const entt::entity & |
parent, |
|
|
const entt::entity & |
body |
|
) |
| |
|
private |
Change the current body's SOI into a child SOI
- Parameters
-
| universe | |
| parent | |
| body | Body that we want to check if it's entering a SOI |
◆ CrashObject()
| bool cqsp::common::systems::SysOrbit::CrashObject |
( |
components::types::Orbit & |
orb, |
|
|
entt::entity |
body, |
|
|
entt::entity |
parent |
|
) |
| |
|
private |
Check if the entity has crashed into its parent object
- Parameters
-
- Returns
- If the object's altitude is below the body's radius
◆ DoSystem()
| void cqsp::common::systems::SysOrbit::DoSystem |
( |
| ) |
|
|
overridevirtual |
◆ EnterSOI()
◆ Interval()
| int cqsp::common::systems::SysOrbit::Interval |
( |
| ) |
|
|
inlineoverridevirtual |
How often is DoSystem is run. It will be run every n number of ticks when the tick becomes a multiple of the number below. The default is 24
Reimplemented from cqsp::common::systems::ISimulationSystem.
◆ LeaveSOI()
Sets the SOI of the entity to the parent
- Parameters
-
| universe | |
| body | Needs to have a Body and Orbit parameter |
| ppos | Parent position |
◆ ParseChildren()
| void cqsp::common::systems::SysOrbit::ParseChildren |
( |
entt::entity |
body | ) |
|
|
private |
◆ ParseOrbitTree()
| void cqsp::common::systems::SysOrbit::ParseOrbitTree |
( |
entt::entity |
parent, |
|
|
entt::entity |
body |
|
) |
| |
|
private |
◆ UpdateCommandQueue()
| void cqsp::common::systems::SysOrbit::UpdateCommandQueue |
( |
components::types::Orbit & |
orb, |
|
|
entt::entity |
body, |
|
|
entt::entity |
parent |
|
) |
| |
|
private |
◆ debug_prints
| const bool cqsp::common::systems::SysOrbit::debug_prints = true |
|
private |
The documentation for this class was generated from the following files:
- /github/workspace/src/common/systems/movement/sysorbit.h
- /github/workspace/src/common/systems/movement/sysorbit.cpp