mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
For some reason dynamic_cast failed with current Bullet revisions.
This commit is contained in:
parent
8e93bee2d6
commit
0ea1ff0ecb
@ -34,9 +34,10 @@ BulletCharacterControllerNode(BulletShape *shape, float step_height, const char
|
|||||||
// Get convex shape (for ghost object)
|
// Get convex shape (for ghost object)
|
||||||
if (!shape->is_convex()) {
|
if (!shape->is_convex()) {
|
||||||
bullet_cat.error() << "a convex shape is required!" << endl;
|
bullet_cat.error() << "a convex shape is required!" << endl;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
btConvexShape *convex = dynamic_cast<btConvexShape *>(shape->ptr());
|
btConvexShape *convex = (btConvexShape *)(shape->ptr());
|
||||||
|
|
||||||
// Ghost object
|
// Ghost object
|
||||||
_ghost = new btPairCachingGhostObject();
|
_ghost = new btPairCachingGhostObject();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user