Movement is Hard

  Рет қаралды 992

Goofydudeguya

Goofydudeguya

Күн бұрын

Пікірлер: 10
@DSoulless
@DSoulless 3 ай бұрын
Something that's always ticked me off is when gamers and companies but mainly gamers get mad at game studios for taking to long to develop game it's a long, painful, and tiring process to right code and constantly have to test over and over each time you add a new line of code to make sure it works and didn't break any of your previous lines of code it sucks because most studios are given deadlines they have to meet and most of the time they can't meet them and sometimes they can but they didn't have the time to test, fix bugs, and perfect the code and mechanics and they end up disappointing their community's because they just don't have the time especially with the requirements of games now adays and that's why indie devs thrive as thy don't have those absurd requirements and deadlines as they are their own bosses
@bobbywalden9818
@bobbywalden9818 3 ай бұрын
Genuinely impressed with how much detail is never really considered in game dev, even for the simple concept of movement. REALLY makes you appreciate the tools that those other programs provide. Great video!
@Axisok
@Axisok 3 ай бұрын
It's much easier to get direction inputs by using var input_dir = Input.get_vector("move_left", "move_right", "move_forward", "move_back"), which combines all directions and limits the magnitude to 1 all in a single line. To translate it into world coordinates, I think all you have to do is var input_v = input_dir.x * transform.basis.x + input_dir.y * transform.basis.z, different variable because that's a Vector3 and the other was a Vector2. I'd also avoid using speed for acceleration and instead have a velocity variable, since speed is a float variable with no sense of direction. To accelerate, we add input_v * acceleration * delta, keeping in mind that acceleration is expressed in m/s². If you don't plan on ever letting the player move faster than move speed, all you need to do is limit the velocity magnitude (with Vector3.limit_length(float)) to move speed after adding acceleration. For friction/deceleration, add an opposing force at the beginning of the frame that tries to bring velocity closer to 0 if the player is in contact with the ground. CharacterBody3D already has a velocity variable, which is what you should use for moving around (along with move_and_slide()). Not sure if it's the best way to do it, I only played with Godot very casually so I wouldn't know. Still, movement is easy, at least for simple stuff like that.
@RoyaltyInTraining.
@RoyaltyInTraining. 3 ай бұрын
The linear algebra courses in college genuinely helped me get a really good intuition for all this stuff Edit: I would encourage you to look into building quaternions from euler angles. Quaternions themselves are actually quite often constructed from them in games, since using their four axes directrly is so utterly unintuitive. As long as you limit yourself to standard FPS camera controls in two axes and never attempt to concatenate euler rotations without converting to quaternions first, you will never run into gimbal lock issues. You need to look out for the order of operations your engine uses, and you might have to choose that on a case by case basis.
@necoluga7950
@necoluga7950 3 ай бұрын
Yeh lol i studdy math and once i started programing games and concepts such as vectors are intuitively aplyed in alot of places.
@goofydudeguya
@goofydudeguya 3 ай бұрын
Thanks for the input! I understand that it would be very beneficial to eventually utilize quaternions in 3D games. The idea of converting eulers to quats sound like a much better way of using them then trying to understand their application directly. 😅 P.S. Please bear with me since I don't have any formal education in these higher math concepts. I'm running off of self-taught experience and stuff from high school LOL.
@MoJaKF
@MoJaKF 3 ай бұрын
why does this video not have more views?!
@zotechgaming1095
@zotechgaming1095 3 ай бұрын
Algorithm
@deleted_handle
@deleted_handle 3 ай бұрын
It was 1 day old when u commented this...
The Minecraft Legacy Console Edition Void
15:05
SlashedPort
Рет қаралды 415 М.
Making a Game About Weak Points
21:27
Emis
Рет қаралды 1 МЛН
🎈🎈🎈😲 #tiktok #shorts
0:28
Byungari 병아리언니
Рет қаралды 4,5 МЛН
What does a Game Engine actually do?
16:45
Ellie Rasmussen
Рет қаралды 178 М.
These Games Hate Speedrunning
28:46
OtherRuns
Рет қаралды 344 М.
How Do Game Devs NOT Overscope??
9:04
Green Light Dev
Рет қаралды 18 М.
I redesigned my game
23:32
jdh
Рет қаралды 166 М.
How were the portals in Portal created? | Bitwise
8:28
DigiDigger
Рет қаралды 1 МЛН
Side-effects of doing VERY long runs in Noita
10:24
FuryForged
Рет қаралды 382 М.
I Trained an AI for 2 Years on Trackmania. It's Breaking Records.
27:50
Why Majora's Mask's Blue Dog Took 25 Years to Win the Race
21:04
Vidya James
Рет қаралды 3 МЛН
What if Old Minecraft Mobs were Created Today?
28:05
KazooCat
Рет қаралды 793 М.
How Many Throws are Required to Beat Pikmin 1?
25:42
Press A!
Рет қаралды 500 М.