Variable jump height is usually in its own tutorial, but easy to plug into other movement scripts (like I said above).Some notes about the requirements you're asking for: Most of the ones I find lack the "variable jump height" you mentioned, but they're usually in videos on their own and simple enough to plug into your code to change the jump height. There are definitely a ton of tutorials which do it all different ways, although I haven't really found one that does all of them, but some that get pretty close. I've also watched lots of Udemy courses, but again everyone has a different approach and not necassarily the right way.ĭoes anyone know of a good tutorial or a good simple script that handles all that I've mentioned with regards to a 3D platformer controller? I initially purchased a full controller from the Unity Asset Store, but it was way too complicated for my needs - plus I really want to understand how it all works (this would seem logical) - not just use what is essentailly a plugin. Frankenstien to piece together code from one tutorial to another that does this or that, avoiding the coders mistakes and sifting out the correct one - and then trying to get it all working together is just becomming madness! I feel like I'm wasting my time and not actually making any games, which is the whole point I started. I just want to make a simple 3D player controller, with variable jump height - normalized movement/jumping and working gravity. Most tutorials oddly forget about gamepads too and only focus on keyboard.Īssuming I'm correct with the above, is this normal for programming in Unity, does everyone go through this overload of knowledge and best practices and then struggle more? If so, then I wonder why there isn't any concise tutorials on the subject that do things the correct way. Then when there are tutorials for jumping, it's always a lame Fixed jump and not a Variable Height one. Some methods of moving Rigidbodies stop Gravity working correctly. Movement should be Normalized so that diagonals don't speed up movement. Rigidbodies should be moved not with Translate, but with Velocity or AddForce. Physics movement should be within FixedUpdate. This is even common with seasoned programmers who have a lot of subs on YT.Ĭountless times I've read in the comments of a tutorial that. On top of that, the majority of tutorials seem to contradict each other with regards to the best/correct methods to do things, especially with Rigidbody and Physics. I set myself a goal to create a simple character controller for a Rigidbody based 3D Platformer (this should be totally doable for me by now), but sadly most tutorials I've watched are for 2D platformers or FPS games. I've been using Unity on and off for a while now, but I'm starting to get more confused as I learn more! I don't feel I'm making much traction learning Unity
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |