Search found 51 matches

by MeteoricDragon
Sun Apr 22, 2018 9:46 pm
Forum: Developer Discussion
Topic: Experimental Smooth Crouch
Replies: 19
Views: 590

Re: Experimental Smooth Crouch

Everything is working as far as I can tell! I submitted PR for it.
by MeteoricDragon
Sun Apr 22, 2018 9:45 pm
Forum: Developer Discussion
Topic: GitHub Desktop
Replies: 17
Views: 660

Re: GitHub Desktop

Did you try my answer on github? If you use rebase instead of merge you don't get the "Merge remote-tracking branch 'x' into y" commit. Try pull --rebase in a test branch and see if you can get it to be synced with master :) I tried it and was successful. I had better success doing it with Visual S...
by MeteoricDragon
Sun Apr 22, 2018 5:26 pm
Forum: Developer Discussion
Topic: Experimental Smooth Crouch
Replies: 19
Views: 590

Re: Experimental Smooth Crouch

The smooth crouch now smoothly crouches/stands without any problems. The culprit that was messing up the start of the stand was a line in PlayerMotor. It said if (!isCrouching) controller.height = standingHeight. I made that line say if (!isCrouching && myCroucher.ToggleAction != CrouchToggleAction....
by MeteoricDragon
Sun Apr 22, 2018 1:42 am
Forum: Developer Discussion
Topic: Experimental Smooth Crouch
Replies: 19
Views: 590

Re: Experimental Smooth Crouch

Actually, I think I got it now. Except for a bounce motion when standing. It happens about 50% of the time. I'll see if I can get a video posted what it looks like. I had to reverse what I was doing for standing. There are two methods. one for crouching, and one for standing. Both are simpler than t...
by MeteoricDragon
Sat Apr 21, 2018 11:55 pm
Forum: Developer Discussion
Topic: Experimental Smooth Crouch
Replies: 19
Views: 590

Re: Experimental Smooth Crouch

I believe the following code should work. I haven't tested it and I'm making a few assumptions. I also added a few suggestions on improvements and tips, feel free to ignore any or all of them :) The one thing I know that will break this, is if it possible to crouch(or uncrouch) before the CroucheTo...
by MeteoricDragon
Sat Apr 21, 2018 3:22 am
Forum: Developer Discussion
Topic: Experimental Smooth Crouch
Replies: 19
Views: 590

Re: Experimental Smooth Crouch

I do find the sudden crouching to be a bit weird, thank you MeteoricDragon for working on this! :D When it comes to the implementation. As long as you reset the camera back to it's original position during the same frame (the same update loop) as you snap the player body in position, there is no po...
by MeteoricDragon
Fri Apr 20, 2018 3:33 am
Forum: Developer Discussion
Topic: Experimental Smooth Crouch
Replies: 19
Views: 590

Re: Experimental Smooth Crouch

The camera is a child of the controller object, so moving controller will also move camera. But you should be able to transform camera's localPosition like ifkopifko's suggestion then perform snap crouch. Here's the breakdown, but not sure how well this work in practice as other scripts (like headb...
by MeteoricDragon
Thu Apr 19, 2018 2:31 pm
Forum: Developer Discussion
Topic: Experimental Smooth Crouch
Replies: 19
Views: 590

Re: Experimental Smooth Crouch

Changing the controller.transform.position changes the main camera position too because I guess they are connected somehow. Is there a way in code to disable that connection and then re-enable it? I'd like to move the PlayerController independently of the camera for just a few lines of code.
by MeteoricDragon
Wed Apr 18, 2018 11:53 pm
Forum: Developer Discussion
Topic: GitHub Desktop
Replies: 17
Views: 660

Re: GitHub Desktop

I've been working on a branch that I created from Interkarma's master branch a while ago called "croucher". My master branch was recently updated. but I know that commits that were made to the master branch won't be made to the 'croucher' branch without the right git command. I've found in the past ...
by MeteoricDragon
Sat Apr 14, 2018 1:27 am
Forum: Developer Discussion
Topic: Experimental Smooth Crouch
Replies: 19
Views: 590

Re: Experimental Smooth Crouch

I've got somewhat interesting results to report. I made a workaround for the bug. It's still possible to get pinned into a door by crouching or standing in a specific spot there. but now I've got it so that the player can press in any direction and rapidly tap crouch and he can "wiggle" out of the s...