#Calculating physics from another object

1 messages · Page 1 of 1 (latest)

frosty sage
#

Hello, I added Trickshot, trickshotline and linerenderer to the game object and it works fine but I want the bullet to be fired from the Pivot at the end of the barrel, how can I do this? In other words, it will move according to the object I added, but it needs to make the calculation and fire the bullet from the barrel.

ember copper
#

Put the Trickshot on the "barrel" or more accuratly the pivot

#

you will see we do this same thing in the 2D example where we have a little turret type thing and also in the tank example I think

#

so you want to put the trickshot at the point the projectile enters free flight

#

e.g. the muzzle of the barrel