How to align weapons properly?!

Respaekt

New member
Hi,
using unity 2022.3 LTS with UCC 3.0.18, only 3rd Person Character

iam trying to align my weapon (projectile Shooter). What i thought the workflow would be:

1. Align the waepon with the CharacterIK Debug Draw Look Ray. I added a temporary long cylinder (red emissive on the pricture) to align the weapon with ray.
2. Copy the rotation values over to the weapons ThirdPersonPerspectiveItem
3. When i shoot, projectiles are not hitting the cross-hair target (see shootingdissaray.png)

how do you align weapons properly?

Thanks and have a good day!
 

Attachments

  • Alignwithray.png
    Alignwithray.png
    264.4 KB · Views: 3
  • shootingdissaray.png
    shootingdissaray.png
    64.9 KB · Views: 3
It looks like your weapon is aligned properly but the projectile is firing in a different direction. On the shooter action you can change the direction that the projectile fires - make sure you are firing in the look source rather than based on the transform direction.
 
Top