Skip to content
Permalink
Browse files

collide: fix pusher convex angle detection for visible geometry

Previously it was only working for CollisionPolygon.

Fixes #879
  • Loading branch information
rdb committed Mar 8, 2020
1 parent 8a86ca9 commit e8d8f20acb5e51354762b41fd6397f32c1b74dcc
Showing with 2 additions and 2 deletions.
  1. +2 −2 panda/src/collide/collisionHandlerPusher.cxx
@@ -173,8 +173,8 @@ handle_entries() {
const CollisionSolid *s2 = sd2._entry->get_into();
if (s1 != nullptr &&
s2 != nullptr &&
s1->is_exact_type(CollisionPolygon::get_class_type()) &&
s2->is_exact_type(CollisionPolygon::get_class_type()) &&
s1->is_of_type(CollisionPolygon::get_class_type()) &&
s2->is_of_type(CollisionPolygon::get_class_type()) &&
sd._entry->get_into_node_path() ==
sd2._entry->get_into_node_path()) {
const CollisionPolygon *p1 = DCAST(CollisionPolygon, s1);

0 comments on commit e8d8f20

Please sign in to comment.
You can’t perform that action at this time.