17 INLINE PhysxDebugGeomNode::
18 PhysxDebugGeomNode() :
GeomNode(
"debug") {
25 _prim_lines =
new GeomLines(Geom::UH_stream);
26 _prim_lines->set_shade_model(Geom::SM_uniform);
28 _geom_lines =
new Geom(_vdata);
29 _geom_lines->add_primitive(_prim_lines);
35 _prim_triangles->set_shade_model(Geom::SM_uniform);
37 _geom_triangles =
new Geom(_vdata);
38 _geom_triangles->add_primitive(_prim_triangles);
46 INLINE PhysxDebugGeomNode::
47 ~PhysxDebugGeomNode() {
54 INLINE
void PhysxDebugGeomNode::
55 visualize_world_axes(
bool value) {
57 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_WORLD_AXES, value);
63 INLINE
void PhysxDebugGeomNode::
64 visualize_body_axes(
bool value) {
66 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_BODY_AXES, value);
72 INLINE
void PhysxDebugGeomNode::
73 visualize_body_mass_axes(
bool value) {
75 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_BODY_MASS_AXES, value);
81 INLINE
void PhysxDebugGeomNode::
82 visualize_body_lin_velocity(
bool value) {
84 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_BODY_LIN_VELOCITY, value);
90 INLINE
void PhysxDebugGeomNode::
91 visualize_body_ang_velocity(
bool value) {
93 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_BODY_ANG_VELOCITY, value);
99 INLINE
void PhysxDebugGeomNode::
100 visualize_body_joint_groups(
bool value) {
102 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_BODY_JOINT_GROUPS, value);
108 INLINE
void PhysxDebugGeomNode::
109 visualize_joint_local_axes(
bool value) {
111 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_JOINT_LOCAL_AXES, value);
117 INLINE
void PhysxDebugGeomNode::
118 visualize_joint_world_axes(
bool value) {
120 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_JOINT_WORLD_AXES, value);
126 INLINE
void PhysxDebugGeomNode::
127 visualize_joint_limits(
bool value) {
129 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_JOINT_LIMITS, value);
135 INLINE
void PhysxDebugGeomNode::
136 visualize_contact_point(
bool value) {
138 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_CONTACT_POINT, value);
144 INLINE
void PhysxDebugGeomNode::
145 visualize_contact_normal(
bool value) {
147 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_CONTACT_NORMAL, value);
153 INLINE
void PhysxDebugGeomNode::
154 visualize_contact_error(
bool value) {
156 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_CONTACT_ERROR, value);
162 INLINE
void PhysxDebugGeomNode::
163 visualize_contact_force(
bool value) {
165 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_CONTACT_FORCE, value);
171 INLINE
void PhysxDebugGeomNode::
172 visualize_actor_axes(
bool value) {
174 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_ACTOR_AXES, value);
180 INLINE
void PhysxDebugGeomNode::
181 visualize_collision_aabbs(
bool value) {
183 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_COLLISION_AABBS, value);
189 INLINE
void PhysxDebugGeomNode::
190 visualize_collision_shapes(
bool value) {
192 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_COLLISION_SHAPES, value);
198 INLINE
void PhysxDebugGeomNode::
199 visualize_collision_axes(
bool value) {
201 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_COLLISION_AXES, value);
207 INLINE
void PhysxDebugGeomNode::
208 visualize_collision_compounds(
bool value) {
210 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_COLLISION_COMPOUNDS, value);
216 INLINE
void PhysxDebugGeomNode::
217 visualize_collision_vnormals(
bool value) {
219 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_COLLISION_VNORMALS, value);
225 INLINE
void PhysxDebugGeomNode::
226 visualize_collision_fnormals(
bool value) {
228 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_COLLISION_FNORMALS, value);
234 INLINE
void PhysxDebugGeomNode::
235 visualize_collision_edges(
bool value) {
237 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_COLLISION_EDGES, value);
243 INLINE
void PhysxDebugGeomNode::
244 visualize_collision_spheres(
bool value) {
246 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_COLLISION_SPHERES, value);
252 INLINE
void PhysxDebugGeomNode::
253 visualize_collision_static(
bool value) {
255 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_COLLISION_STATIC, value);
261 INLINE
void PhysxDebugGeomNode::
262 visualize_collision_dynamic(
bool value) {
264 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_COLLISION_DYNAMIC, value);
270 INLINE
void PhysxDebugGeomNode::
271 visualize_collision_free(
bool value) {
273 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_COLLISION_FREE, value);
279 INLINE
void PhysxDebugGeomNode::
280 visualize_collision_ccd(
bool value) {
282 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_COLLISION_CCD, value);
288 INLINE
void PhysxDebugGeomNode::
289 visualize_collision_skeletons(
bool value) {
291 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_COLLISION_SKELETONS, value);
297 INLINE
void PhysxDebugGeomNode::
298 visualize_cloth_mesh(
bool value) {
300 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_CLOTH_MESH, value);
306 INLINE
void PhysxDebugGeomNode::
307 visualize_cloth_validbounds(
bool value) {
309 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_CLOTH_VALIDBOUNDS, value);
315 INLINE
void PhysxDebugGeomNode::
316 visualize_softbody_mesh(
bool value) {
318 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_SOFTBODY_MESH, value);
324 INLINE
void PhysxDebugGeomNode::
325 visualize_softbody_validbounds(
bool value) {
327 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_SOFTBODY_VALIDBOUNDS, value);
333 INLINE
void PhysxDebugGeomNode::
334 visualize_force_fields(
bool value) {
336 NxGetPhysicsSDK()->setParameter(NX_VISUALIZE_FORCE_FIELDS, value);
This defines the actual numeric vertex data stored in a Geom, in the structure defined by a particula...
A container for geometry primitives.
Defines a series of disconnected line segments.
Defines a series of disconnected triangles.
A node that holds Geom objects, renderable pieces of geometry.
void add_geom(Geom *geom, const RenderState *state=RenderState::make_empty())
Adds a new Geom to the node.