Unity 3d - Third Person controller | Max Payne Style | test

preview_player
Показать описание
As promised, I am updating the description.

So, the video refer to a controller "test" made before the Dark Souls one that I'm working on (check the playlist on my channel).

The movement are based on John Mac's "Unity Third Person Control" series.
I encourage you to go through his tutorials and, in 1-2 days, you'll end up with a controller that is better than mine.

The head "look at" is the one provided by unity.

The aiming part is a little trickier.
In this case, in unity IK you'll work with two vector: hand goal and the elbow hint.
The first alters the hand position while the second it's like a string attached to your elbows that influence its position/rotation.

Two example to give instantly an idea of how it works:
- classic beer mug drinking, in this case the elbow hint would be at Vector3(.5f,-.1f,.05f) from your right shoulder. keeping it away from your body.
- classic gym curl, in this case the elbow hint would be at Vector3(0,-.5f,-.1f) from your right shoulder. keeping it tight from your body.
Makes sense?

How I did it?

Think of it like full arm cast with tree nested vector: shoulder, elbow hint, hand goal.
the shoulder (nested in the same position of the sholuder model) "look at" the target and the other child objects are moved automatically.
Finally the hand is rotated to "look at" the target.

Playing with some offsets of the three you'll get the result.

Let me now know what you think and subscribe if you like.

CREDITS

Unity engine

John Mac's "Unity Third Person Control" series (camera control part)

PBR Customized Soldier | Maksim Bugrimov

Hashtags search
#Unity3d #MadeWithUnity #MaxPayne
Рекомендации по теме
Комментарии
Автор

thats the best character movment in unity i have ever seen, really like it

silviohauptmann
Автор

This looks so incredibly smooth!! I really want to achieve this type of movement similar to Max Payne 3 in my game unfortunately since I use unreal engine there aren't alot of tutorials for it. Great job bro!!! 😔👌

SlurpyPie
Автор

that’s some AAA shit right there holy fuck!

CarpathianWasteGroup
Автор

😲😲😲😲😲. How u make transitiin between animatiins so smooth ??? Btw great work here waiting for tutorials 💕💕💕

wizzely
Автор

Bro we want a tutorial on this one. Pleaseeee.

destroyer
Автор

Which animations are you using for this?

DovahMorghulis
Автор

For IK part, are you using new unity animation rig package or older built in IK system.
I was using the old built-in IK system but the elbows weren't stable especially when moving the character. Elbow targets are children of the right shoulder target. The right shoulder target, which is the same position and rotation as right shoulder bone.
What am I missing?
For the upper body animation, did you overwrite the animation with aiming animation?

mrthaw
Автор

Can you make a tutorials i need a controller like this

DetectiveRyku
Автор

Please !! Please !! Please !! Guide or tutorial!!

everabyss
Автор

I would love to learn how to set this up in its entirety I've went through the John Mac tutorial and you IK aim but I can't get the camera set up quite right would you be able to help out?

lewismacdonald
Автор

Would you be willing to sell this as an asset?

VishalSiddireddy
Автор

Hi, did you use dot product to define the weighting?

raveltammeleht