- Home /
How to make a turret facing to player both parented to sphere ?
Hi, I'm a beginner in Unity C# and this is my first post.
So, I have an object (capsule) for my player and an other object (from blender) for a turret. Both are child of a sphere (planet) and they have rigidbody attracted by the sphere by a script (they are standing on).
What I want is to rotate my turret y axis to point the player, so I tried "LookAt" and many solutions but my turret is always keeping the "global" axis I think, so it's only work on the top of the sphere.
Thank in advance for any one helping me
Can you pls post your lookat code, so we can see how you're currently approaching it?
Your answer
Follow this Question
Related Questions
How to send a transform from a C# script to a Js script 0 Answers
Turret script bug 2 Answers
Tank turret 1 axis, but keeping turret rotation for parent. 0 Answers
multipe targets 1 Answer
target tracking with lead time 1 Answer