mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Added method to enforce calling the transform_changed hook on bullet nodes.
This commit is contained in:
parent
48c2ea92c5
commit
ca103005a5
@ -655,3 +655,18 @@ add_shapes_from_collision_solids(CollisionNode *cnode) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: BulletBodyNode::set_transform_dirty
|
||||||
|
// Access: Published
|
||||||
|
// Description: This method enforces an update of the Bullet
|
||||||
|
// transform, that is copies the scene graph transform
|
||||||
|
// to the Bullet transform.
|
||||||
|
// This is achieved by alling the protected PandaNode
|
||||||
|
// hook 'transform_changed'.
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
void BulletBodyNode::
|
||||||
|
set_transform_dirty() {
|
||||||
|
|
||||||
|
transform_changed();
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -109,6 +109,9 @@ PUBLISHED:
|
|||||||
void set_ccd_swept_sphere_radius(PN_stdfloat radius);
|
void set_ccd_swept_sphere_radius(PN_stdfloat radius);
|
||||||
void set_ccd_motion_threshold(PN_stdfloat threshold);
|
void set_ccd_motion_threshold(PN_stdfloat threshold);
|
||||||
|
|
||||||
|
// Special
|
||||||
|
void set_transform_dirty();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual btCollisionObject *get_object() const = 0;
|
virtual btCollisionObject *get_object() const = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user