This summer, I implemented several new collision detection tests for Panda3D’s collision system, specifically “parabola into box”, “parabola into inverse sphere”, and “box into capsule”. These collision tests have been merged and can be found in the main repository. Additionally, I implemented a new CollisionHeightfield
class, which efficiently deals with collisions on uneven terrain given a grayscale heightfield image. CollisionHeightfield
is near completion, and hopefully after some finalizations it will be merged soon.
CollisionHeightfield
- BAM is one of Panda3D’s native file formats, allowing users to export Panda3D objects.CollisionHeightfield
from line and line segment - CollisionHeightfield
currently has a collision test for CollisionRay
, as rays are used commonly with terrains. However, it would be nice to have collision tests for lines and segments. Fortunately, these tests are only slight variants of the CollisionRay
test, so implementing them wouldn’t be too difficult.You can find the blog posts I made during the coding period here: