Questions tagged [acceleration]

ambiguous tag: avoid using this tag (see the full tag wiki for alternatives)

This tag is currently ambiguous and unlikely to get your question extra attention. Consider using the following tags for better classification:

175 questions
1
vote
1 answer

Problem with Pygame movement acceleration, platformer game

When i move right using the right key, i accelerate to a max speed. When i release it, i do decelerate to a stop so that is fine. However, when moving left using the left key, and after releasing it, i continue moving at a fixed speed and then come…
1
vote
1 answer

Game Development: How to add acceleration to velocity?

I have a View which I need to scale with an acceleration, I mean, that when the scale is MIN_SCALE, the velocity must be slow, but when the scale is near of MAX_SALE, the velocity must be more fast. Now my velocity is always the same. There is a…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
1
vote
0 answers

Detect high variation of optical flow in video

I need to detect the high variation of the optical flow in the video. For example the crossroads. Two cars are driving and they have some value of optical flow. Next, in some time period, they have collision, so it will produce a high variation of…
1
vote
1 answer

Deceleration and acceleration

Im making an Android game and I'm looking for a relatively simple tutorial on ball collision detection. In particular an elastic collision between 2 balls (That is to say how balls would behave after the collision - kinda like pool balls when they…
heyred
  • 2,031
  • 8
  • 44
  • 89
1
vote
1 answer

Calculating car acceleration from recording time and speed in R

I would like to calculate a new variable "acceleration (in m/s^2)" for longitudinal recorded car data and only have the speed of the car(in m/s) and the recording time (in s). This is a part of the dataframe df: speed time_sec 1 27.520 0.273 2…
anon
1
vote
1 answer

Is it necessary to write all the variables and the loop with numpy?

I saw someone trying to use python and numpy to do simulations. However, it was quiet slow. I read his code and it turnes out to me that he only used numpy packages when dealing with the array/matrix calculation, and all the other variables and…
J C
  • 181
  • 7
1
vote
1 answer

Object that slows down and stops at a specific point

In my project I have a car, with a script attached to it, for driving. In my world are traffic lights, if it is red, there spawns an object (invisible, named stop) that makes the car stop if its there, and if it is away it goes on driving with a…
Lukas
  • 397
  • 6
  • 21
1
vote
0 answers

Xeon-Phi vs. Xeon Unexplained Overhead

I am trying to run the following code with different n sizes on an Xeon Phi KNC (with 61 cores and 4T/C) and Xeon (with 2 sockets of Xeon E5-2660 v2). I am getting the timings as shown in the tables below. However, I am trying to understand why…
1
vote
1 answer

Unexplained Xeon-Phi Overhead

I am trying to run this code with these different n sizes on an Xeon Phi KNC. I am getting the timings as shown in the table, but I have no idea why I am experiencing those fluctuations. Can you please guide me through it? Thanks in…
1
vote
1 answer

libGDX gravity and constant acceleration doesn't work properly

I am trying to create a simple Flappy Bird clone but in my own way ( so it's not a complete clone ). However I am having problems applying a constant downwards acceleration to the Bird. When I create a World it says that it gets a gravity variable…
J.Doe
  • 125
  • 1
  • 1
  • 10
1
vote
1 answer

How to accelerate DFT by specifying region of interest in frequency domain

Note: This question is originally asked at OpenCV forum a couple of days ago. I'm building an image processing program which extensively uses 2-dimensional dft, discrete Fourier transform. I'm trying to speed up so as to run in real-time. In that…
mhirano
  • 11
  • 3
1
vote
1 answer

Can I speed this up any more?

I am interested in speeding up computation time for the subroutine compoundret which basically compounds a monthly return series over some holding period, say one month, three months, six months, etc. I will be calling this subroutine from R as a…
Baba Yara
  • 119
  • 7
1
vote
3 answers

Solving 2nd order ODE, Matlab- the acceleration in the equation needs its own value in order to include another different term

I have this 2nd order ODE to solve in Matlab: (a + f(t))·(dx/dt)·(d²x/dt²) + g(t) + ((h(t) + i(t)·(d²x/dt² > b·(c-x)))·(dx/dt) + j(t))·(dx/dt)² + k(t)·(t > d) = 0 where a,b,c,d are known constants f(t),g(t),h(t),i(t),j(t),k(t) are known…
Sergio
  • 45
  • 7
1
vote
2 answers

How to move Sprite forward and backward every time the button is click in libgdx?

How can I make my player move forward and backward in my top down game.I created two buttons the moveForward button and moveBackward button.Using acceleromter I move my player left and right. My main problem is the moving forward and backward of my…
jaZzZ
  • 127
  • 12
1
vote
1 answer

Code for decelerating rotation of a coin not working properly

I am trying to model the rotation of a coin. One full rotation is modeled as a change of one parameter from 1 to -1 back to 1, 1 being the straight coin and -1 being the coin upside down. The coin should decelerate progressively. The arguments of…
whatamess
  • 243
  • 2
  • 12