mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
Some additional output for ls().
This commit is contained in:
parent
0b3af39363
commit
24acb72bb4
@ -146,6 +146,22 @@ safe_to_flatten_below() const {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: BulletBodyNode::output
|
||||||
|
// Access: Public, Virtual
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
void BulletBodyNode::
|
||||||
|
output(ostream &out) const {
|
||||||
|
|
||||||
|
PandaNode::output(out);
|
||||||
|
|
||||||
|
out << " (" << get_num_shapes() << " shapes)";
|
||||||
|
|
||||||
|
if (is_static()) out << " static";
|
||||||
|
if (is_kinematic()) out << " kinematic";
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: BulletBodyNode::transform_changed
|
// Function: BulletBodyNode::transform_changed
|
||||||
// Access: Protected
|
// Access: Protected
|
||||||
|
@ -110,6 +110,8 @@ public:
|
|||||||
virtual bool safe_to_combine_children() const;
|
virtual bool safe_to_combine_children() const;
|
||||||
virtual bool safe_to_flatten_below() const;
|
virtual bool safe_to_flatten_below() const;
|
||||||
|
|
||||||
|
virtual void output(ostream &out) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
INLINE void set_collision_flag(int flag, bool value);
|
INLINE void set_collision_flag(int flag, bool value);
|
||||||
INLINE bool get_collision_flag(int flag) const;
|
INLINE bool get_collision_flag(int flag) const;
|
||||||
|
@ -48,6 +48,19 @@ BulletRigidBodyNode(const char *name) : BulletBodyNode(name) {
|
|||||||
_body->setUserPointer(this);
|
_body->setUserPointer(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: BulletRigidBodyNode::output
|
||||||
|
// Access: Public, Virtual
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
void BulletRigidBodyNode::
|
||||||
|
output(ostream &out) const {
|
||||||
|
|
||||||
|
BulletBodyNode::output(out);
|
||||||
|
|
||||||
|
out << " mass=" << get_mass();
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: BulletRigidBodyNode::get_object
|
// Function: BulletRigidBodyNode::get_object
|
||||||
// Access: Public
|
// Access: Public
|
||||||
|
@ -80,6 +80,8 @@ PUBLISHED:
|
|||||||
public:
|
public:
|
||||||
virtual btCollisionObject *get_object() const;
|
virtual btCollisionObject *get_object() const;
|
||||||
|
|
||||||
|
virtual void output(ostream &out) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void parents_changed();
|
virtual void parents_changed();
|
||||||
virtual void transform_changed();
|
virtual void transform_changed();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user