dim3 Forum

Full Version: Projectile Physics
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to script a barrel to blow up, and all the pieces should fly outwards, bouncing off of things.

Sounds easy, but when I use the projectile auto bounce, the pieces continually bounce forever. I tried turing of bounce after 50 ticks or so, but it seems that bounce can only be changed in the construct function. I also tried using
Code:
proj.action.stick();
when the piece collides with the map, but this causes it to stick to walls as well.

Is there any way to make projectiles bounce finitely or do I have to use objects?
I though there were separate events available for hitting the walls or hitting the ground. Or is that not used in the new version?
No way to do that in the new version afaik, wall and floor pieces are now the same.
[EDIT]Actually, there is. I was looking in the wrong part of the docs, my bad.
Code:
DIM3_PROJ_HIT_TYPE_???
Reference URL's