Math questions (Trajectory)

Player_EPlayer_E Member, PRO Posts: 604
edited November -1 in Working with GS (Mac)
So I have an actor that I want to follow a certain trajectory path. I did some looking around and found a formula to use.

Trajectory

X= Velocity * Time * COS(angle)
Y= Velocity * Time * SIN(angle) - 1/2 * Gravity * Time^2

I used 2 constrain attribute, one for X and Y, plugged these formulas in while filling in the variable with correct numbers.

This works great, BUT the object moves slowly along this trajectory path. I have tried editing numbers to speed up the object along the path, but it always alters the path.

Any one have an idea on how I can keep this trajectory path, but speed up the object along the way?

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    It has a velocity in the expression so I would assume that would be the number to start with. try adding a change attribute that sets a specific x and y velocity.
  • Player_EPlayer_E Member, PRO Posts: 604
    I figured it out after messing with it for another 30 min.

    Just changing the velocity does not do the trick. if you just change velocity then it increases the arch along with the speed, so I was trying to figure out how to keep the same arch, but increase speed.

    I had to adjust the velocity and the gravity in order to maintain the same arch, but at higher speed.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
Sign In or Register to comment.