|
Post by sjmtech on Oct 7, 2018 14:45:46 GMT
hey rasto61, I did some test and seems that commenting (vThirspersonInput.cs ... UpdateCameraStates method ) the line "tpCamera=FindObjectOfType<vCamera.vThirdPersonCamera>();" all work without issues saving up 5+ ms and few frame per second. Maybe we can ask to Invector what implication this mod could cause. If not would be great to remove using "FindObjectOfType" every frame.
|
|
|
Post by rasto61 on Oct 9, 2018 6:15:29 GMT
Yes, that would be good. Hope they see this.
|
|
|
Post by Invector on Oct 9, 2018 18:49:12 GMT
Actually this FindObjectOfType only runs once at the start if you have a tpCamera, in case you don't you can remove the line but you need to identify the tpcamera somehow when you enable it.
|
|
|
Post by sjmtech on Oct 9, 2018 19:29:16 GMT
Yes, it sould be ok already. I did not know that FindObjectOfType was also in LateUpdate (UpdateCameraStates).I only saw it in Start . For this reason my FpCamera swap code already (when switching to the third) looks for tpCamera and I fills the variable vThirspersonInput when it instantiates the prefab of the third camera. Starting with Third it's ok too becouse the search is also in Start method (vThirspersonInput ).
|
|
|
Post by Devistute on Oct 17, 2018 21:04:05 GMT
Hi, how would i go about to put this "Fix" from earlier to the newest version of the script? Just rebooted the First Person project, updated the FPS Addon and everything fell apart
Void LateUpdate(){ if(isSwimm){ lateUpdateSync = true; } if (lateUpdateSync){ lateUpdateSync = false; if(!vInput.cc.ragdolled && Time.timeScale!=0){
if(isInteracting){ CharacterRotation(); FaceToCamera(); CameraLook(); }
CameraHeadBonePosition(); CameraHeadBoneRotation(); } } } Hmm, might be wrong one im referring to but i mean the one that locks the camera to follow animation & head.Nevermind it works!
|
|
|
Post by Frosted Brain on Nov 12, 2018 7:01:37 GMT
I am getting a weird problem with my player's head, it is getting stuck in place while the body rotates
|
|
|
Post by sjmtech on Nov 12, 2018 7:16:31 GMT
Hi chillymcchillson, Can you post a screenshot of your issue? Anyway ... check if the neck slot is correctly assigned in the Humanoid settings. This is a common issue which cause wrong head rotation.
|
|
|
Post by Frosted Brain on Nov 12, 2018 7:49:37 GMT
Hi chillymcchillson, Can you post a screenshot of your issue? Anyway ... check if the neck slot is correctly assigned in the Humanoid settings. This is a common issue which cause wrong head rotation. Not sure whats going on here, I have the proper head transform assigned but his head stays pointed the same direction while I can turn
|
|
|
Post by sjmtech on Nov 12, 2018 10:03:21 GMT
The FPCamera addon takes the control only when enabled...in third mode is the Invector camera responsible of the control.
|
|
epsd
New vMember
Posts: 8
|
Post by epsd on Nov 25, 2018 4:03:03 GMT
Hi sjmtech, I'm trying this out again after a while and I can see there have been a lot of improvements. It's a lot smoother than it used to be. I'm just running into one problem that I thought you could help me out with. The camera seems to jump when I go out of Aiming down Sights.
|
|
|
Post by sjmtech on Nov 25, 2018 8:35:43 GMT
Hi epsd, is it present in the preconfigured included scenes? Watching your gif i could suggest you to deselect the player gameobject on runtime to avoid annoying lags. Let me know
|
|
|
Post by ronnyrfa on Dec 5, 2018 18:47:57 GMT
Hi there. Just bought the Locomotion pack from the asset store. I'm new to the gaming industry and I'm trying to develop a shooter game with a first person view. Can you give me some tips to lock the camera in position so it only moves when the hand moves? So you can't do things like this: prnt.sc/lr6127Kind regards
|
|
|
Post by sjmtech on Dec 6, 2018 15:23:39 GMT
Hi ronnyrfa, I don't know if i got what you want mean! If you want that the body is aligned to the head rotation (without any threshold) you need to set the "Rotation Thld" to zero.
|
|
|
Post by ronnyrfa on Dec 6, 2018 23:46:11 GMT
Hi ronnyrfa, I don't know if i got what you want mean! If you want that the body is aligned to the head rotation (without any threshold) you need to set the "Rotation Thld" to zero. Yep that's exactly what I need. Thanks!
|
|
aymn
Junior vMember
Posts: 37
|
Post by aymn on Dec 8, 2018 12:38:26 GMT
hi sjmtech;
first I want to thank u for sharing this great addon... I want to make TRUE FPS GAME with invector and ur addon but I run into problem when aiming or zooming and press shift to run I experience an abnormal movement which described in the video .. I hope to find a solution thank u
|
|