Skip to content

Commit e8d8f20

Browse files
committed
collide: fix pusher convex angle detection for visible geometry
Previously it was only working for CollisionPolygon. Fixes panda3d#879
1 parent 8a86ca9 commit e8d8f20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

panda/src/collide/collisionHandlerPusher.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ handle_entries() {
173173
const CollisionSolid *s2 = sd2._entry->get_into();
174174
if (s1 != nullptr &&
175175
s2 != nullptr &&
176-
s1->is_exact_type(CollisionPolygon::get_class_type()) &&
177-
s2->is_exact_type(CollisionPolygon::get_class_type()) &&
176+
s1->is_of_type(CollisionPolygon::get_class_type()) &&
177+
s2->is_of_type(CollisionPolygon::get_class_type()) &&
178178
sd._entry->get_into_node_path() ==
179179
sd2._entry->get_into_node_path()) {
180180
const CollisionPolygon *p1 = DCAST(CollisionPolygon, s1);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy