|
Nebula
|
#include "core/cvar.h"#include "foundation/stdneb.h"#include "PxConfig.h"#include "PxPhysicsAPI.h"#include "physicsinterface.h"#include "physics/debugui.h"#include "physics/utils.h"#include "physics/actorcontext.h"#include "math/scalar.h"#include "timing/time.h"#include "physics/physxstate.h"#include "physics/streamactorpool.h"#include "physics/formats/formats.h"#include "resources/resourceserver.h"#include "io/assignregistry.h"#include "io/ioserver.h"#include "nflatbuffer/flatbufferinterface.h"#include "flat/physics/collisions.h"#include "util/color.h"Namespaces | |
| namespace | Physics |
| Diverse functions for manipulating physics actors. | |
Macros | |
| #define | PHYSX_MEMORY_ALLOCATION_DEBUG false |
| #define | PHYSX_THREADS 4 |
Functions | |
| void | Physics::LoadMaterialTable (const IO::URI &materialTable) |
| void | Physics::Setup () |
| initialize the physics subsystem and create a default scene | |
| void | Physics::ShutDown () |
| close the physics subsystem | |
| IndexT | Physics::CreateScene () |
| void | Physics::DestroyScene (IndexT sceneId) |
| Physics::Scene & | Physics::GetScene (IndexT idx) |
| void | Physics::SetEventCallback (EventCallbackType callback, IndexT sceneId) |
| void | Physics::SetActiveActorCallback (UpdateFunctionType callback, IndexT sceneId=0) |
| called once per step for every actor PhysX reported active on that step | |
| void | Physics::RenderDebug () |
| render a debug visualization of the level | |
| void | Physics::LoadCollisionFilters () |
| Physics::Material & | Physics::GetMaterial (IndexT idx) |
| void | Physics::SetOnSleepCallback (Util::Delegate< void(ActorId *id, SizeT num)> const &callback) |
| void | Physics::SetOnWakeCallback (Util::Delegate< void(ActorId *id, SizeT num)> const &callback) |
| IndexT | Physics::SetPhysicsMaterial (Util::StringAtom name, float staticFriction, float dynamicFriction, float restitution, float density) |
| IndexT | Physics::LookupMaterial (Util::StringAtom name) |
| SizeT | Physics::GetNrMaterials () |
| void | Physics::Step (Timing::Time delta) |
| perform a sync simulation step on every scene | |
| void | Physics::Step (Timing::Time delta, IndexT scene) |
| one sync simulation step of a single scene. Actor reads and writes have to happen outside of this | |
| ActorId | Physics::CreateActorInstance (Physics::ActorResourceId id, Math::transform const &trans, Physics::ActorType type, uint64_t userData, IndexT scene) |
| void | Physics::DestroyActorInstance (Physics::ActorId id) |
Variables | |
| Ptr< Physics::StreamActorPool > | Physics::actorLoader |
| #define PHYSX_MEMORY_ALLOCATION_DEBUG false |
| #define PHYSX_THREADS 4 |