#How to launch a 3D character at any angle

1 messages · Page 1 of 1 (latest)

crude dome
#

So this is 2 things:
1: Use a timer to figure out how long the player pressed a button, this is your added force (should be a vector).
2: Add that new force (vector) to the existing Velocity.

fresh swallow
#

About 2: How do I calculate the seperate forces on every axis (through a base force and a normal)?

crude dome
#

Why do you need to do it on every axis? You can just add up Vectors?

fresh swallow
#

Sorry, I don't seem to actually need that

#

Although I want to try it out without the Timer first

crude dome
#

If it's always just "press button x = fly Y", then just hardcode the extra Vector for that extra flying and add it to the existing velocity vector

fresh swallow
#

Pretty sure I'm having a logic error right now, so I think I'll try to base it off of smth else instead, although thanks for the help

#

I probably don't need something as precise as this tbh

crude dome
#

But this is what you're asking? It's also not "precise"? It's just correct?
Take existing velocity, and add whatever boost you had in mind.

#

Keep in mind, if that boost is in the opposite direction of the current velocity, it will cancel eachother out.