3
$\begingroup$

I have some bullets that simply have an always sensor and motion, but since I have gravity on, they fall in a weird way. They do not fall and hit the ground on the tip of the bullet, but rather hit the ground in the exact position they had when they were fired, sleeping. How do I have the bullet tilt as it falls, and possibly have it hit the ground on it's tip?

$\endgroup$
  • 1
    $\begingroup$ Theoretically, you are getting a 100% correct simulation. You see, there is no force acting on it to make the nose point downwards. Any object with a pure (i.e. 1X, 0Y, 0Z) vector force, will continue in that direction at the same angle. You need to add some more features to the animation to get the desired result. Adding a dense piece tot he nose of the bullet could help (via parenting). $\endgroup$ – VRM Dec 30 '14 at 2:59
  • $\begingroup$ @BlenderDev I added the blend file to the answer. $\endgroup$ – X-27 the fluffy unicorn Apr 11 '15 at 1:04
8
$\begingroup$

You can do this by having your gun fire a setup like this.

enter image description here

Before, you gun just fired the cone, and there was nothing to make it rotate. however, if the cone is parented to a cube with the physics set to Rigid Body, and the gun fires the cube, the cone will move with it. however, there is still nothing to make it rotate. This can be fixed by enabling the slow parent option on the cone.

enter image description here

With this option enabled, the cone will lag behind the cube when the cube is fired out of the gun. but we still need the cone to rotate. we can do this by making it track to the cube.

enter image description here

Now when the cube is fired, the cone lags behind and points to the cube. this creates the illusion like it is dropping due to gravity.

enter image description here

However there is still a problem. when the cube hits the ground, it starts rotating. Because the cone is parented to the cube, it also starts spinning out of control. We can fix this by preventing the cube from rotating. Remember, the cubes is only so the cone has something to track to. IF you want, you can also use it to calculate the collisions.

enter image description here

Now we can test it again.

enter image description here

It now looks like it should, but there is a giant cube in front, and the cone does not look like a very convincing projectile. And, when the cube hits the ground, the cone still fires off slightly. we can fix the problems with the cube first by making it invisible, and enabling the ghost setting.

enter image description here

Now it will pass through the plane, making the cone follow it as it would if it was a bomb falling to the ground. however, we made the cube invisible, so we can't see the cube anymore. we can only see the result.

enter image description here

This is good, but the cone still does not look like a very good projectile. You can obviously model anything you want for this, but I chose to model a missile because they look cool. I also added an explosion when the cube hits the ground, and some other awesome effects to make it look cool.

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.