Questions tagged [gravity]

The concept of UI widgets being dragged to a specific side of a surrounding element.

The concept of UI widgets being dragged to a specific side of a surrounding element.

Do not use this to refer to accelerometers (gravity sensors) in mobile phones. Use accelerometer instead.

832 questions
-3
votes
2 answers

Can the player have a heavier weight?

My question is maybe unclear, but I'll explain it through the picture I attached. So, what I'm asking is, how can I have the player get more affected by the gravitation, so it falls off when only a small part is colliding? I tried to increase the…
imbruceter
  • 29
  • 9
-3
votes
3 answers

Is There Anyway I can make my image jump then fall back down

I want my image to jump up 7 y-axis Lines or something, but then i want him to fall back down. Any Help? Heres My Code: CGRect frame = Guy.frame; frame.origin.x = frame.origin.x - 0; frame.origin.y = frame.origin.y - 7; [UIView…
-3
votes
1 answer

Programming Gravity

I'm programming a game (JAVA) and i would like to add some gravity in. I tried to find a formula or someting like this and there is so different way to do it. I'm looking for a formula who can simulate a realistique gravity and make some rebound…
user2065368
  • 3
  • 1
  • 2
-3
votes
1 answer

Creating gamemaker's gravity in c++

in c++ ive been trying to recreate gamemakers gravity, so far i have this: double script::lengthdir_y(double len,double dir){ return -sin(dir* M_PI/180) * len;//Create equivalent GM lengthdir_y code. } double script::scr_findhsy(player*…
-4
votes
3 answers

Why does my 1D gravity simulation not act like a pendulum?

My gravity simulation acts more like a gravity slingshot. Once the two bodies pass over each other, they accelerate far more than they decelerate on the other side. It's not balanced. It won't oscillate around an attractor. How do other gravity…
Bodhi1
  • 149
  • 10
-4
votes
4 answers

How can I get this layout?

I have still some difficulties with Android layouts, so here is what I want to do. On the same line (a view), I want to place 3 textviews, let's call them date, name and value. Here is what I want it to look like : Of course date is 12/03/2013,…
Rob
  • 15,732
  • 22
  • 69
  • 107
1 2 3
55
56