True FPS Demo

Hello everyone,
I’ve decided to share my true fps demo with you. It’s a simplified functionality from my side project.
Demo can be downloaded from GitHub - GenaSG/TrueFPSDemo: Demo of true FPS functionality .

Enjoy

3 Likes

thanks, man, your project is good as start point

1 Like

hi , when i put my model i get some error , the head is rotated and not work for it i don’t know way, can you make
a tutorial for it.
thanks

Hello,
Usually that means that animation doesn’t work properly. Probably non humanoid rig.

Do you use own IK because LateUpdate is moving bones and IK target is in wrong position?
I decided to try AnimationUtility.SetEditorCurve and make own animation using editor script, but i realized that SetEditorCurve uses muscle FK instead “transform” FK?
I have no idea how to simply do something like this with muscles:

this.animator.GetBoneTransform(HumanBodyBones.Spine).localRotation *= Quaternion.Slerp(Quaternion.identity, this.character.CameraRotation, .2f);

Because changing “Spine Front-Back” raise legs…

Edit: I gave up animation, currently i’m using animator.SetBoneLocalRotation in OnAnimatorIK.
I just had to copy spine-chest-neck-head-camera-aimpoint structure using transforms and predict IK target position in Update.

Hello
Yes there’s a custom IK. It’s already in the demo project.

Looks awesome. I just was wondering, if someone could give me tip how to set the animations up. When I start it, I only can walk and run. When I jump it still plays walking animations. I’ve seen there are some nice animations in the folders, but how do I make use of them? Would be great if someone could help me out with this.

It’s all standard thing. Create additional states in the Animator controller and pass variables to animator when needed.

You’re my hero, comrade

1 Like

thank u so much, u cant imagine how much u helpd me. sorry but i need to ask, can i use some knowled of this in commercial use?

Hello. I’m happy to help. Sure, no problem you can use it.

First of all, thanks a lot for sharing your project!

I’m having issues with opening it in Unity though. I’m using 2020.1 and when I try to open in via the hub it says “Invalid project path”. Does anyone know what might be the issue?

UPD: Nevermind, I’ve manually dragged all the files into a newly created project and it worked!:slight_smile:

Hello. How I can change the character model?

How change 3d model in asset???