0 votes
asked in AimIK by
Hi ,

can you provide me some tips basically ( I have followed the tutorial) how to drive the AIMIK with my mouse cursor.

On the tutorial you can use the AIMIK moving around the empty gameobject transform.

 The purpose is to make a 3rd person aiming controller.

Thanks.

2 Answers

0 votes
answered by (20.2k points)

Hey,

With a 3rd person aiming controller, the character would be aiming in direction of the camera, straight forward.

So you would set AimIK target position like this:

aimIK.solver.IKPosition = cameraTransform.position + cameraTransform.forward * 10f;

* 10f  there is completely arbitraty distance, you might want to tweak that to your liking.

Best,

Pärtel

0 votes
answered by (140 points)

If you use Unity-3D I think the best way is using Aim-IK to aim toward a transform (like mouse position):

https://github.com/ehsan-mohammadi/Aim-IK

Welcome to RootMotion Q&A, where you can ask questions and receive answers from the developer of Final IK and PuppetMaster and other members of the community.

Post as a guest, create an account or login via Facebook.

Please use the correct category when you post your questions.

...