Panda3D
Loading...
Searching...
No Matches
physxScene.I
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 physxScene.I
10 * @author enn0x
11 * @date 2009-09-14
12 */
13
14/**
15 *
16 */
17INLINE PhysxScene::
18PhysxScene() : PhysxObject() {
19
20 _debugNode = new PhysxDebugGeomNode();
21}
22
23/**
24 *
25 */
26INLINE PhysxScene::
27~PhysxScene() {
28
29 _debugNode = nullptr;
30}
31
32/**
33 *
34 */
35INLINE void PhysxScene::
36ls() const {
37
38 ls(nout);
39}
40
41/**
42 *
43 */
44INLINE void PhysxScene::
45ls(std::ostream &out, int indent_level) const {
46
47 indent(out, indent_level) << get_type().get_name()
48 << " (at 0x" << this << ")\n";
49
50 _materials.ls(out, indent_level);
51 _actors.ls(out, indent_level);
52 _joints.ls(out, indent_level);
53 _forcefields.ls(out, indent_level);
54 _ffgroups.ls(out, indent_level);
55 _controllers.ls(out, indent_level);
56 _vehicles.ls(out, indent_level);
57 _cloths.ls(out, indent_level);
58 _softbodies.ls(out, indent_level);
59}
60
61/**
62 *
63 */
64INLINE void PhysxScene::
65set_controller_shape_hit_callback(PT(CallbackObject) cbobj) {
66
67 _controller_report.set_shape_hit_callback(cbobj);
68}
69
70/**
71 *
72 */
73INLINE void PhysxScene::
74set_controller_controller_hit_callback(PT(CallbackObject) cbobj) {
75
76 _controller_report.set_controller_hit_callback(cbobj);
77}
This is a generic object that can be assigned to a callback at various points in the rendering proces...
Renderable geometry which represents visualizations of physics objects.
get_name
Returns the name of the type.
Definition typeHandle.h:136
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Definition indent.cxx:20