|
Nebula
|
#include "ids/id.h"#include "ids/idallocator.h"#include "timing/time.h"#include "util/bitfield.h"#include "util/color.h"#include "util/delegate.h"#include "util/set.h"#include "util/arraystack.h"#include "util/stringatom.h"#include "math/mat4.h"#include "math/transform.h"#include "resources/resourceid.h"#include "flat/physics/material.h"#include <functional>#include "PxPhysicsAPI.h"Go to the source code of this file.
Classes | |
| struct | Physics::ActorResourceId |
| struct | Physics::AggregateResourceId |
| struct | Physics::PhysicsResourceId |
| struct | Physics::ConstraintResourceId |
| struct | Physics::Material |
| struct | Physics::ActorId |
| struct | Physics::CharacterId |
| struct | Physics::ConstraintId |
| struct | Physics::AggregateId |
| struct | Physics::ShapeId |
| struct | Physics::Actor |
| struct | Physics::Shape |
| struct | Physics::Character |
| struct | Physics::Constraint |
| struct | Physics::Aggregate |
| struct | Physics::ContactEvent |
| struct | Physics::CharacterCreateInfo |
| struct | Physics::CharacterCreateInfo::CapsuleInfo |
| struct | Physics::CharacterCreateInfo::BoxInfo |
| struct | Physics::ColliderDescription |
| A collider description / create info. More... | |
| struct | Physics::BodyDescription |
| A physics body description. More... | |
| struct | Physics::Scene |
| physx scene classes, foundation and physics are duplicated here for convenience instead of static getters, might be removed later on More... | |
Namespaces | |
| namespace | Physics |
| Diverse functions for manipulating physics actors. | |
Typedefs | |
| using | Physics::CharacterCollision = Util::BitField<CharacterCollisionBitsMax> |
| using | Physics::UpdateFunctionType = void (*) (const Actor&) |
| using | Physics::EventCallbackType = void (*) (const Util::Array<ContactEvent>&) |
Enumerations | |
| enum | Physics::ActorType { Physics::Static , Physics::Kinematic , Physics::Dynamic } |
| enum | Physics::CharacterCollisionBits { Physics::Sides = 0 , Physics::Up = 1 , Physics::Down = 2 , Physics::CharacterCollisionBitsMax } |
Functions | |
| void | Physics::Setup () |
| initialize the physics subsystem and create a default scene | |
| void | Physics::ShutDown () |
| close the physics subsystem | |
| 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 | |
| IndexT | Physics::CreateScene () |
| void | Physics::DestroyScene (IndexT sceneId) |
| Physics::Scene & | Physics::GetScene (IndexT idx) |
| void | Physics::SetActiveActorCallback (UpdateFunctionType callback, IndexT sceneId=0) |
| called once per step for every actor PhysX reported active on that step | |
| void | Physics::SetEventCallback (EventCallbackType callback, IndexT sceneId) |
| void | Physics::RenderDebug () |
| render a debug visualization of the level | |
| 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) |
| Physics::Material & | Physics::GetMaterial (IndexT idx) |
| IndexT | Physics::LookupMaterial (Util::StringAtom name) |
| SizeT | Physics::GetNrMaterials () |
| ActorId | Physics::CreateActorInstance (Physics::ActorResourceId id, Math::transform const &trans, Physics::ActorType type, uint64_t userData, IndexT scene) |
| void | Physics::DestroyActorInstance (Physics::ActorId id) |