Entity1037
New member
- Joined
- Aug 22, 2017
- Messages
- 2
This question isn't particularly related to me learning math, I'm trying to just figure out what is required for me to program this attack for a boss in a personal game project of mine. So, sorry if this is in the wrong category.
So I have a bunch of projectile objects starting in the same place, and they all start moving with the same speed at the same time. They all move with angle and speed values in relation to time along a straight path, and don't use x or y velocity, although the angle isn't important for what I'm trying to figure out. The plan is for them to decelerate until they stop. What I want is for all of them to stop at the same time by having each one of them change their deceleration to different values depending on how far they're traveling. They'll move like this:
What I'm having trouble with is figuring out the equation to calculate the deceleration for them to use while they're traveling. Every time I try to do it I just can't find an equation configuration that does what I'm wanting. They all have a known start time, end time, initial velocity, end velocity, start distance, and end distance. But I just can't seem to figure out how to do it. It really seems like something you should be able to do. What am I missing? If someone has the right solution that would be great.
So I have a bunch of projectile objects starting in the same place, and they all start moving with the same speed at the same time. They all move with angle and speed values in relation to time along a straight path, and don't use x or y velocity, although the angle isn't important for what I'm trying to figure out. The plan is for them to decelerate until they stop. What I want is for all of them to stop at the same time by having each one of them change their deceleration to different values depending on how far they're traveling. They'll move like this:
What I'm having trouble with is figuring out the equation to calculate the deceleration for them to use while they're traveling. Every time I try to do it I just can't find an equation configuration that does what I'm wanting. They all have a known start time, end time, initial velocity, end velocity, start distance, and end distance. But I just can't seem to figure out how to do it. It really seems like something you should be able to do. What am I missing? If someone has the right solution that would be great.
Attachments
Last edited: