mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
collide: fix pusher convex angle detection for visible geometry
Previously it was only working for CollisionPolygon. Fixes #879
This commit is contained in:
parent
8a86ca97eb
commit
e8d8f20acb
@ -173,8 +173,8 @@ handle_entries() {
|
|||||||
const CollisionSolid *s2 = sd2._entry->get_into();
|
const CollisionSolid *s2 = sd2._entry->get_into();
|
||||||
if (s1 != nullptr &&
|
if (s1 != nullptr &&
|
||||||
s2 != nullptr &&
|
s2 != nullptr &&
|
||||||
s1->is_exact_type(CollisionPolygon::get_class_type()) &&
|
s1->is_of_type(CollisionPolygon::get_class_type()) &&
|
||||||
s2->is_exact_type(CollisionPolygon::get_class_type()) &&
|
s2->is_of_type(CollisionPolygon::get_class_type()) &&
|
||||||
sd._entry->get_into_node_path() ==
|
sd._entry->get_into_node_path() ==
|
||||||
sd2._entry->get_into_node_path()) {
|
sd2._entry->get_into_node_path()) {
|
||||||
const CollisionPolygon *p1 = DCAST(CollisionPolygon, s1);
|
const CollisionPolygon *p1 = DCAST(CollisionPolygon, s1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user