0
$\begingroup$

I am trying to find out how to make a cannon or gun that works with the physics simulation. but I have two problems.

  1. I'm not sure how to suddenly apply force behind an object,then remove it.
  2. I can't stop the projectile from wedging into the barrel and bouncing around trying to escape.(the alternative is to make is smaller, but it still "bleeds" through the mesh)

how can I use the ridged physics engine to create a ballistic simulation( mortar, gun,etc)?

$\endgroup$
5
  • $\begingroup$ gandalf3 found the real solution (just below my user icon), I left the bad one here for fun. have a magical day this video + some imagination should do the trick. the video shows one object being animated into another one which freely moves as a rigid body. copy this but have the first object(the animated one) be an invisible object that is overlayed with an explosion. make the second object your bullet. skip to 1:15 to see the effect im talking about. also keep in mind that along with changing the speed of the pushing object, you can change the mass of either object to alter the speed of the $\endgroup$
    – Teddyak
    Jun 5, 2014 at 6:40
  • $\begingroup$ See blender.stackexchange.com/q/5100/599 and blender.stackexchange.com/q/8483/599 for animation based initial velocity/activation. $\endgroup$
    – gandalf3
    Jun 5, 2014 at 6:51
  • $\begingroup$ does this both stop funky collision detection and allow the force to be added at any time during the sim or only at the beginning? $\endgroup$
    – user16973
    Jun 5, 2014 at 22:20
  • $\begingroup$ @user16973 Hm.. Unfortunately my comment was deleted somehow, but I linked some posts about both. Here are the links again: post 1, post 2, post 3, post 4. $\endgroup$
    – gandalf3
    Jun 5, 2014 at 23:47
  • $\begingroup$ If those don't answer your question, then feel free to either leave a comment on one of the answers, or post another question if you feel the other questions aren't the asking same question you are. Also try to keep your questions to one question per post :) $\endgroup$
    – gandalf3
    Jun 5, 2014 at 23:54

0

Browse other questions tagged .