playMaker

Author Topic: Uniform acceleration, then Terminal Speed [Noob question]  (Read 1727 times)

planchomanan

  • Playmaker Newbie
  • *
  • Posts: 4
Uniform acceleration, then Terminal Speed [Noob question]
« on: January 29, 2015, 08:50:00 PM »
Hi all,

I want to know how to gradually increasing speed then clamp it at max speed.

I have tried normal float operator, clamp method, but I will need further tweaks with the speed. + It's quite hard to determine the speed increase as it's added every frame? This might be a really noobish question.

Thanks in advance!,

Plan

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: Uniform acceleration, then Terminal Speed [Noob question]
« Reply #1 on: January 30, 2015, 02:03:22 AM »
use a float compare and if the float is equal or higher to your value, send the transistion to a new state wich set the float to max speed.

planchomanan

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Uniform acceleration, then Terminal Speed [Noob question]
« Reply #2 on: February 05, 2015, 01:24:27 AM »
Hi blackant,

I have set a max speed for the transition, although what I want to change is the rate of increase of speed. So I want to be able to determine it against time or distance from origin, this will allow for easier change when I do the level design.

Regards,

Plan