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.


2 Answers

0 votes
answered by (22.1k points)


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.



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):


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.