14#ifndef PHYSXSCENEDESC_H
15#define PHYSXSCENEDESC_H
28class EXPCL_PANDAPHYSX PhysxSceneDesc :
public PhysxEnums {
31 INLINE PhysxSceneDesc();
32 INLINE ~PhysxSceneDesc();
37 void set_flag(PhysxSceneFlag flag,
bool value);
47 bool get_flag(PhysxSceneFlag flag)
const;
Represention of a axis aligned bounding box.
This class exists just to provide scoping for the enums shared by PhysX classes.
unsigned int get_num_grid_cells_y() const
Returns the number of broadphase cells along the grid y-axis.
LVector3f get_gravity() const
Get the gravity vector.
PhysxPruningStructure get_dynamic_structure() const
Returns the subdivision level for acceleration structures used for scene queries.
unsigned int get_subdivision_level() const
Returns the subdivision level for acceleration structures used for scene queries.
void set_dynamic_structure(PhysxPruningStructure value)
Defines the subdivision level for acceleration structures used for scene queries.
void set_num_grid_cells_x(unsigned int value)
Defines the number of broadphase cells along the grid x-axis.
PhysxPruningStructure get_static_structure() const
Returns the structure used to store static objects.
bool is_valid() const
Returns true if the descriptor is valid.
void set_max_bounds(PhysxBounds3 &bounds)
Set the max scene bounds.
PhysxBroadPhaseType get_bp_type() const
Returns the type of broadphase to use.
void set_gravity(const LVector3f &gravity)
Sets the gravity vector.
unsigned int get_num_grid_cells_x() const
Returns the number of broadphase cells along the grid x-axis.
void set_static_structure(PhysxPruningStructure value)
Defines the structure used to store static objects.
bool get_flag(PhysxSceneFlag flag) const
Returns the specified scene flag.
void set_num_grid_cells_y(unsigned int value)
Defines the number of broadphase cells along the grid y-axis.
void set_to_default()
(re)sets the structure to the default.
void set_subdivision_level(unsigned int value)
Defines the subdivision level for acceleration structures used for scene queries.
void set_bp_type(PhysxBroadPhaseType value)
Defines which type of broadphase to use.
void set_flag(PhysxSceneFlag flag, bool value)
Raise or lower individual scene flags.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.