Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - wiyyyy

Pages: [1]
1
General / Re: Car Control Panel(gauges)
« on: March 13, 2015, 09:48:21 pm »
so i have main class named Car and it has speedUp function

Car::speedUp()
{
      speed++;// but i want some real formula not a constant values at the start of program.
      // speed += acc * dt  should do it but i am not able to calculate acc rate and dt.
}

for now i am only able to do speed up one by one when i press the key. i looked other projects topics etc.
but they have constant values at the start of program.

ps: eng is not my native lang if you dont understand pls tell me

2
General / Car Control Panel(gauges)
« on: March 13, 2015, 09:16:45 pm »
Hello SFML community

My school give projects and it is making car control panel aka. gauges.

I want to implement acceleration for speed calculating but i couldnt figured out.

I am using this library for graphics and events and ofc easy-to-use.

So far i tried sf::Time and sf::Clock but didint reach success.

Can you help me about acceleration things.   

Pages: [1]