Third Person Character Controller - Unity

Hi. I’ve been trying out needle tools with Unity and hope to upgrade my account soon. Really like everything you’ve done with Needle! I’m just trying to get a better grip on the third person and first person controllers to hopefully build a unified one with toggle. In the third person Character Controller example I’m experience some “juddering” as it seems the Orbit Controls are wrestling with the Smooth Follow. So perhaps someone else has experienced this or perhaps in your mission to update the Third Person controller you resolved this? Any advise would be appreciated.

Generally I’ve seen that blend animations are not supported, but from what I’m beginning to understand one needs to use the orbit camera method, I guess cinemachine won’t work? I come from a Unity world not Three.js.

Thanks!

Hello trustmeimajedi!

Thank you for your kind words about Needle Tools. Regarding your issues with “juddering” in the Third Person Character Controller due to the Orbit Controls and Smooth Follow components interacting, consider the following suggestions:

  1. Orbit Controls and Camera Movement: These two components can sometimes compete for control of the camera’s position and rotation. Make sure you are not applying conflicting transformations in both components to avoid this juddering.

  2. Adjusting Damping Factors: You may want to play with the damping factors in the Orbit Controls to smooth out movement. Check the dampingFactor property since lower values result in slower movements. This could alleviate some of the juddering.

  3. Unity Animation Blends: As for blend animations, while they aren’t directly supported within Needle Engine in the same capacity as Unity’s Animator, you might need to implement a custom blending mechanism or utilize Linear Interpolation between animations for smoother transitions.

  4. Using Orbit Controls: You are correct, the use of Cinemachine might not be directly applicable. Orbit Controls are designed to work with the Three.js framework, which Needle Engine is built upon.

If the issue persists, consider checking the update sequences of your Orbit Controls and Smooth Follow components in the update loop. Ensure there’s a clear sequence that prevents them from being updated simultaneously in a way that causes conflict.

For a deeper investigation, sharing specific configurations you’re using for these components can be very helpful.

Feel free to ask if you need further assistance or if you have any specific properties or values to discuss!

You can also refer to the documentation for detailed guidance on components:

Let me know how I can assist you next!

3 replies left
thread_zXQJ6te1JrTeKu7Dd3KQEj7d
Reply to this message to continue the conversation

Unfortunately that doesn’t really address my question. Is there perhaps a more complete / sophisticated character controller example for Unity?

Hello trustmeimajedi,

For more complete and sophisticated character controller examples, I recommend checking the following:

  1. Third-Person Character Controller: This example offers functionalities for animation and interactions, providing a solid foundation that you can customize. It includes the use of character controllers which might be closer to what you’re looking for. You can view it here.

  2. First-Person Multiplayer Controller: Although it focuses on a first-person perspective, the implementation can offer insight into structuring character controls. You can check this out here.

  3. Depth Sensing / Characters, Animations, and Controls: This similarly integrates character movement with animations and VR control options. Learn more here.

These examples include detailed scripts and setups for implementing various character controls which you can analyze and use as starting points for your project.

If you have any specific aspects you’re looking to improve or need further clarification on, feel free to ask!

2 replies left
thread_zXQJ6te1JrTeKu7Dd3KQEj7d
Reply to this message to continue the conversation