Ok I’m bored say something

If you want to handle 3D movement, grab your forward vector and multiply that by a new vector3 that consists of your horizontal and vertical input, do not apply anything to the Y.

var direction = object.transform.forward * vector3(h, 0, v);

A cool trick if you handle analogue movement is to grab the lenght of the input if it's a vector
let magnitude = input.lenght()

then add that when calculating the velocity

velocity = direction * speed * magnitude

this will let you smoothly handle analogue input, if the player moves the stick slowly the object will move accordingly instead of reaching it's maximum velocity.

you could mimic this with lerp if you are using keyboard input but might require additional input.
 
If you want to handle 3D movement, grab your forward vector and multiply that by a new vector3 that consists of your horizontal and vertical input, do not apply anything to the Y.

var direction = object.transform.forward * vector3(h, 0, v);

A cool trick if you handle analogue movement is to grab the lenght of the input if it's a vector
let magnitude = input.lenght()

then add that when calculating the velocity

velocity = direction * speed * magnitude

this will let you smoothly handle analogue input, if the player moves the stick slowly the object will move accordingly instead of reaching it's maximum velocity.

you could mimic this with lerp if you are using keyboard input but might require additional input.
Call The Midwife Help GIF by PBS

Did AI put you up to this point?
 
I have a crippling addiction to Fire Emblem and being given random compliments by strangers, especially by men since I am attracted to them.

That being said, these two addictions contradict each other. I live in a world of very little joy.
 
I have a crippling addiction to Fire Emblem and being given random compliments by strangers, especially by men since I am attracted to them.

That being said, these two addictions contradict each other. I live in a world of very little joy.
We could see an upcoming Fire Emblem title for Nintendo Switch 2 soon, don't give up hope yet
 
here's a random thing that keeps popping up in my head.

ive been using vscode for a while before moving to neovim. neovim is great, i'm so grateful that i can move around quickly. unfortunately, setting up plugins and all that is a pain - it is such a pain compared to vscode. sometimes it's the plugins that makes or break the code editor.

as someone who enjoys building sites for fun - testing my API endpoints is an important part of the workflow. thunderclient on vscode does this masterfully. unfortunately there's not really an alternative to that on neovim, and i have to result to writing the whole endpoint, headers, and req body manually in a curl statement and pipe responses through jq.

if i'm testing only a few endpoints that's ok. but if i'm building a "full-stack" site, i'm gna have a lot of API endpoints and writing the whole curl statement over and over again is a chore so i end up opening vscode just for thunderclient. a lot of neovim users who think they're superior to users of other code editors just say "ooo just use curl" but tech is there to make things better in your life, so why wld i make it harder for myself by using curl statements.

if there's a good plugin like thunderclient on neovim i'd be grateful. i don't care if it's a curl wrapper as long as it takes away the cumbersome process of writing the whole curl statement in the terminal.

in the absence of it, i'll try to build my own.
 
We're pushing
down in a hole right before our eyes.
The rising heat and the melting ice.
Now all we care for is
Blood & Satellites.
 
my anus is having a nice day.png

please don't click unless you have a sick sense of humor also it's kinda NSFW (this might get modded but i did spoiler it and did a warning about it
 
Using enums for simple state handling in your games is the best approach but only if your entity will have a specific state at a given time like: idle, moving, shooting but if there's more complex states like in the air shooting, considers a state machine pattern with objects and a multi layered approach.

Also think of ways of passing values to states, a dictionary works.
 

Users who are viewing this thread

Connect with us

Support this Site

RGT relies on you to stay afloat. Help covering the site costs and get some pretty Level 7 perks too.

Featured Video

Latest Threads

Nintendo says they're not legally obligated to pass tariff refunds to customers

Nintendo has been awarded the money from the illegal US tariffs and looking to pocket the money...
Read more

What other game should I play to pass the time besides Digimon World on PlayStation?

I'm playing Digimon World 1 and I just want to know what game would be available to play while...
Read more

Current supercard top 8 cards.

Screenshot_2026.07.21_20.35.35.565.png


Top level is leviathan so just really waiting for summerslam tier to drop now and...
Read more

Forum Masquerade: The Crowning Of The Chameleon Monarch!

Welcome to RGT's first Forum Masquerade!

You know what's up, you are dying to play, and you are...
Read more

Party Like It's The End Of The World!

Online statistics

Members online
255
Guests online
3,725
Total visitors
3,980

Forum statistics

Threads
21,586
Messages
545,149
Members
1,000,710
Latest member
Itspoli

Today's birthdays

Advertisers

Back
Top