I packed a bunch of snippets showing how panda3d collisions works, split in ready to go standalone scripts, organized with progressive difficulty were you should learn the basics for prepare setups to make your scripts react when models collide each other, how to settle those models in a script and also in Blender3D.
Here a small summary of each step you’ll find in the package:
[color=blue]-- Beginner level
[size=100][color=olive]A first approach with Panda3D collisions[/size]
0) quick startup
- first very simple setup
- simple setup with masking discrimination
- collision events
- collision events w/ masking
- mouse picking
- more mouse picking
- cheap collisions with isInVIew
- panda physics overview
- mouse picking in 2D space
[color=green]-- Intermediate level
[size=100][color=olive]Deeper into the topic[/size]
- steering an avatar on uneven ground
- avatar on uneven ground colliding w/ walls
- gravity collider
- collision mesh octree
[color=red]-- Advanced level
[size=100][color=olive]Real-world application samples[/size]
- real-world use of isInVIew: cheap intruder detection
- 2.5D collisions: colliding 2D & 3D objects
- target shooter minigame - simple physics ballistic (sorta)
[color=indigo][size=150]Pieces Of Advice:[/size]
- This tutorial is devised to be attended in conjunction with the Blender3D modeler files, therefore if you’re accustomed with a different one, i.e. maya or 3d studio max, I suggest you to download Blender3D nonetheless, study how the sources are structured and then try to reproduce in your beloved modeler.
- So far the Chicken exporter do not correctly export collider nesting deeper that 1 level, therefore the descend feature stops there. Check here for more.
Beside this stepped tutorial is actually finished it is always perfectible, therefore drop a post to this thread if you find issues and questions blocking you to get what’s going on in a particular point of the tutorial or blender sources.