x


Rigidbody projectile jittering

Hello everybody! Im aware similar questions were asked already, but they dont seem to be exactly the same problem since the answers didnt help me.

I am instantiating a rigidbody and add velocity to it (its a gun projectile, what else?). Its a small "energy ball" and you can watch it fly off. The problem is, especially when the player is moving, you can see the rigidbody "flicker" while flying, as if it was switching between 2 parallel paths very quickly. Unfortunately interpolation doesnt solve that, though it reduces the intensity of the flickering. I dont even know what code to show you, since its just a simple instantiate:

    var clone : Rigidbody;
    clone = Instantiate(projectile, muzzleTransform.position, transform.rotation);
    clone.velocity = transform.TransformDirection (Vector3.forward * velocity);

This is a simplified version, because the real one also takes the players speed into account, but it happens on both. Any ideas?

more ▼

asked Jul 11 '12 at 08:48 PM

LaserPanzerWal gravatar image

LaserPanzerWal
0 1 1

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1799
x1683
x255
x40
x21

asked: Jul 11 '12 at 08:48 PM

Seen: 332 times

Last Updated: Jul 11 '12 at 08:48 PM