75 void simulate(
float dt);
77 void set_timing_variable();
78 void set_timing_fixed(
float maxTimestep=1.0f/60.0f,
unsigned int maxIter=8);
82 void enable_contact_reporting(
bool enabled);
83 bool is_contact_reporting_enabled()
const;
84 void enable_trigger_reporting(
bool enabled);
85 bool is_trigger_reporting_enabled()
const;
86 void enable_controller_reporting(
bool enabled);
87 bool is_controller_reporting_enabled()
const;
89 INLINE
void set_controller_shape_hit_callback(PT(
CallbackObject) cbobj);
90 INLINE
void set_controller_controller_hit_callback(PT(
CallbackObject) cbobj);
92 void set_gravity(
const LVector3f &gravity);
94 LVector3f get_gravity()
const;
96 bool get_flag(PhysxSceneFlag flag)
const;
97 bool is_hardware_scene()
const;
100 unsigned int get_num_actors()
const;
102 PhysxActor *get_actor(
unsigned int idx)
const;
103 MAKE_SEQ(get_actors, get_num_actors, get_actor);
106 unsigned int get_num_joints()
const;
108 PhysxJoint *get_joint(
unsigned int idx)
const;
109 MAKE_SEQ(get_joints, get_num_joints, get_joint);
112 unsigned int get_num_materials()
const;
113 unsigned int get_hightest_material_index()
const;
117 PhysxMaterial *get_material_from_index(
unsigned int idx)
const;
118 MAKE_SEQ(get_materials, get_num_materials, get_material);
121 unsigned int get_num_controllers()
const;
124 MAKE_SEQ(get_controllers, get_num_controllers, get_controller);
127 unsigned int get_num_force_fields()
const;
130 MAKE_SEQ(get_force_fields, get_num_force_fields, get_force_field);
133 unsigned int get_num_force_field_shape_groups()
const;
136 MAKE_SEQ(get_force_field_shape_groups, get_num_force_field_shape_groups, get_force_field_shape_group);
139 unsigned int get_num_cloths()
const;
141 PhysxCloth *get_cloth(
unsigned int idx)
const;
142 MAKE_SEQ(get_cloths, get_num_cloths, get_cloth);
145 unsigned int get_num_soft_bodies()
const;
148 MAKE_SEQ(get_soft_bodies, get_num_soft_bodies, get_soft_body);
151 unsigned int get_num_vehicles()
const;
154 MAKE_SEQ(get_vehicles, get_num_vehicles, get_vehicle);
157 bool raycast_any_shape(
const PhysxRay &ray,
158 PhysxShapesType shapesType=ST_all,
163 PhysxShapesType shapesType=ST_all,
168 PhysxShapesType shapesType=ST_all,
172 bool raycast_any_bounds(
const PhysxRay &ray,
173 PhysxShapesType shapesType=ST_all,
178 PhysxShapesType shapesType=ST_all,
183 PhysxShapesType shapesType=ST_all,
189 PhysxShapesType shapesType=ST_all,
192 PhysxOverlapReport overlap_capsule_shapes(
const LPoint3f &p0,
const LPoint3f &p1,
float radius,
193 PhysxShapesType shapesType=ST_all,
197 void set_actor_pair_flag(
PhysxActor &actorA,
PhysxActor &actorB, PhysxContactPairFlag flag,
bool value);
199 void set_actor_group_pair_flag(
unsigned int g1,
unsigned int g2, PhysxContactPairFlag flag,
bool value);
200 void set_group_collision_flag(
unsigned int g1,
unsigned int g2,
bool enable);
201 void set_filter_ops(PhysxFilterOp op0, PhysxFilterOp op1, PhysxFilterOp op2);
202 void set_filter_bool(
bool flag);
209 bool get_actor_group_pair_flag(
unsigned int g1,
unsigned int g2, PhysxContactPairFlag flag);
210 bool get_group_collision_flag(
unsigned int g1,
unsigned int g2);
211 bool get_filter_bool()
const;
214 PhysxFilterOp get_filter_op0()
const;
215 PhysxFilterOp get_filter_op1()
const;
216 PhysxFilterOp get_filter_op2()
const;
222 INLINE
void ls()
const;
223 INLINE
void ls(std::ostream &out,
int indent_level=0)
const;
226 INLINE NxScene *ptr()
const {
return _ptr; };
227 INLINE NxControllerManager *cm()
const {
return _cm; };
229 void link(NxScene *ptr);
246 NxControllerManager *_cm;
265 static void init_type() {
266 PhysxObject::init_type();
268 PhysxObject::get_class_type());
271 return get_class_type();
275 return get_class_type();
Descriptor for PhysxSoftBody.