Panda3D
Loading...
Searching...
No Matches
physxSceneDesc.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file physxSceneDesc.h
10 * @author enn0x
11 * @date 2009-09-05
12 */
13
14#ifndef PHYSXSCENEDESC_H
15#define PHYSXSCENEDESC_H
16
17#include "pandabase.h"
18#include "luse.h"
19
20#include "physxEnums.h"
21#include "physx_includes.h"
22
23class PhysxBounds3;
24
25/**
26 * Descriptor for PhysxScene.
27 */
28class EXPCL_PANDAPHYSX PhysxSceneDesc : public PhysxEnums {
29
30PUBLISHED:
31 INLINE PhysxSceneDesc();
32 INLINE ~PhysxSceneDesc();
33
34 INLINE void set_to_default();
35 INLINE bool is_valid() const;
36
37 void set_flag(PhysxSceneFlag flag, bool value);
38 void set_gravity(const LVector3f &gravity);
39 void set_max_bounds(PhysxBounds3 &bounds);
40 void set_static_structure(PhysxPruningStructure value);
41 void set_dynamic_structure(PhysxPruningStructure value);
42 void set_bp_type(PhysxBroadPhaseType value);
43 void set_subdivision_level(unsigned int value);
44 void set_num_grid_cells_x(unsigned int value);
45 void set_num_grid_cells_y(unsigned int value);
46
47 bool get_flag(PhysxSceneFlag flag) const;
48 LVector3f get_gravity() const;
49 PhysxBounds3 get_max_bounds() const;
50 PhysxPruningStructure get_static_structure() const;
51 PhysxPruningStructure get_dynamic_structure() const;
52 PhysxBroadPhaseType get_bp_type() const;
53 unsigned int get_subdivision_level() const;
54 unsigned int get_num_grid_cells_x() const;
55 unsigned int get_num_grid_cells_y() const;
56
57public:
58 NxSceneDesc _desc;
59};
60
61#include "physxSceneDesc.I"
62
63#endif // PHYSXSCENEDESC_H
Represention of a axis aligned bounding box.
This class exists just to provide scoping for the enums shared by PhysX classes.
Definition physxEnums.h:355
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.