|
Bicameral Engine
GPU-resident engine for a magic-research open-world game
|
Functions | |
| int64_t | HalfExtentFromMillimeters (int64_t sideMillimeters) |
| PhysicsSceneBody | MakeGround () |
| PhysicsSceneBody | MakeMeterCube (uint64_t massKg, int64_t bottom) |
| std::array< int32_t, 4 > | MultiplyQuaternion (const std::array< int32_t, 4 > &a, const std::array< int32_t, 4 > &b) |
| std::array< int32_t, 4 > | AxisRotation (uint32_t axis, uint32_t angle) |
| std::array< int32_t, 4 > | RandomRotation (uint64_t seed, uint64_t id) |
| void | AddPen (PhysicsScene &scene, uint64_t removeTick) |
| PhysicsSceneBody | MakeFallingBox (uint64_t seed, uint64_t index) |
Variables | |
| constexpr int64_t | METER = (int64_t)1 << POSITION_FRACTION_BITS |
| constexpr uint64_t | MILLIGRAMS_PER_KG = 1000000 |
| constexpr uint32_t | PURPOSE_SIZE = 0x50480001u |
| constexpr uint32_t | PURPOSE_DENSITY = 0x50480002u |
| constexpr uint32_t | PURPOSE_ANGLE = 0x50480003u |
| constexpr uint32_t | PURPOSE_JITTER = 0x50480004u |
| void bicameral::sim::anonymous_namespace{physics_scene.cpp}::AddPen | ( | PhysicsScene & | scene, |
| uint64_t | removeTick ) |
Definition at line 79 of file physics_scene.cpp.
References AddPen(), bicameral::sim::PhysicsScene::bodies, and METER.
Referenced by AddPen().
| std::array< int32_t, 4 > bicameral::sim::anonymous_namespace{physics_scene.cpp}::AxisRotation | ( | uint32_t | axis, |
| uint32_t | angle ) |
Definition at line 58 of file physics_scene.cpp.
References AxisRotation().
Referenced by AxisRotation(), and RandomRotation().
| int64_t bicameral::sim::anonymous_namespace{physics_scene.cpp}::HalfExtentFromMillimeters | ( | int64_t | sideMillimeters | ) |
Definition at line 23 of file physics_scene.cpp.
References HalfExtentFromMillimeters(), and METER.
Referenced by HalfExtentFromMillimeters(), and MakeFallingBox().
| PhysicsSceneBody bicameral::sim::anonymous_namespace{physics_scene.cpp}::MakeFallingBox | ( | uint64_t | seed, |
| uint64_t | index ) |
Definition at line 100 of file physics_scene.cpp.
References HalfExtentFromMillimeters(), MakeFallingBox(), METER, PURPOSE_DENSITY, PURPOSE_JITTER, PURPOSE_SIZE, and RandomRotation().
Referenced by MakeFallingBox().
| PhysicsSceneBody bicameral::sim::anonymous_namespace{physics_scene.cpp}::MakeGround | ( | ) |
Definition at line 28 of file physics_scene.cpp.
References MakeGround(), and METER.
Referenced by MakeGround().
| PhysicsSceneBody bicameral::sim::anonymous_namespace{physics_scene.cpp}::MakeMeterCube | ( | uint64_t | massKg, |
| int64_t | bottom ) |
Definition at line 36 of file physics_scene.cpp.
References MakeMeterCube(), METER, and MILLIGRAMS_PER_KG.
Referenced by MakeMeterCube().
| std::array< int32_t, 4 > bicameral::sim::anonymous_namespace{physics_scene.cpp}::MultiplyQuaternion | ( | const std::array< int32_t, 4 > & | a, |
| const std::array< int32_t, 4 > & | b ) |
Definition at line 45 of file physics_scene.cpp.
References MultiplyQuaternion().
Referenced by MultiplyQuaternion(), and RandomRotation().
| std::array< int32_t, 4 > bicameral::sim::anonymous_namespace{physics_scene.cpp}::RandomRotation | ( | uint64_t | seed, |
| uint64_t | id ) |
Definition at line 67 of file physics_scene.cpp.
References AxisRotation(), MultiplyQuaternion(), PURPOSE_ANGLE, and RandomRotation().
Referenced by MakeFallingBox(), and RandomRotation().
|
constexpr |
Definition at line 13 of file physics_scene.cpp.
Referenced by AddPen(), HalfExtentFromMillimeters(), MakeFallingBox(), MakeGround(), and MakeMeterCube().
|
constexpr |
Definition at line 14 of file physics_scene.cpp.
Referenced by MakeMeterCube().
|
constexpr |
Definition at line 19 of file physics_scene.cpp.
Referenced by RandomRotation().
|
constexpr |
Definition at line 18 of file physics_scene.cpp.
Referenced by MakeFallingBox().
|
constexpr |
Definition at line 20 of file physics_scene.cpp.
Referenced by MakeFallingBox().
|
constexpr |
Definition at line 17 of file physics_scene.cpp.
Referenced by MakeFallingBox().