Questions tagged [game-physics]

Game Physics is about implementation, creation, optimization and any other thing related to physics in games. Physics controls the interaction of every physical object in a game, where any 2d or 3d model interacts with any other 2d or 3d model of an object in a game. Physics is used to give realistic effects of this interaction.

Game Physics is about implementation, creation, optimization and any other thing related to physics in games. Physics controls the interaction of every physical object in a game, where any 2d or3d model interacts with any other 2d or 3d model of an object in a game. Physics is used to give realistic effects of this interaction.

3864 questions
1
vote
0 answers

How can I prevent picture boxes from intersecting, while they are in constant movement?

A bit of an introduction: I am creating a game for a Grade 11 Visual Basic Computer Science class. My game is simply a survival game, where your character can shoot a bullet, left or right, to defend itself from 8 enemy picture boxes. The movement…
Ryan Maz
  • 13
  • 2
1
vote
1 answer

2D platformer gravity physics with slow-motion

I fine tuned my 2d platformer physics and when I added slow-motion I realized that it is messed up. The problem I have is that for some reason the physics still depends on framerate. So when I scale down time elapsed, every force is scaled down as…
DD.
  • 89
  • 2
  • 13
1
vote
1 answer

Agar.io-like cell physics

I wanted to make a circle that has a ripple-effect on the edges, kind of like in the game agar.io. I am kind of lost on how to implement it. Obviously I can't just g.fillOval() because that would draw a solid circle with no movement on the…
Andrew
  • 63
  • 7
1
vote
1 answer

Placing a circle so that it does not collide with any other circles

Given a canvas with a bunch of circles with a certain radius, say 50, how do I place another circle with radius 10 in a random location so that it does not collide or overlap with any existing circles? I know I can place the circle and then check if…
1
vote
1 answer

Arduino Esplora Pong Game

Over the last couple of days I've been working on a Pong game for Arduino Esplora with Arduino's TFT display. Everything in the game works except that, when the player scores the ball gets deleted from it's last location and reappears in the center…
Bernardo Meurer
  • 2,295
  • 5
  • 31
  • 52
1
vote
2 answers

How to get smooth movement in a javascript game?

I want to create a tile based RPG game with javascript and the first problem is movement. I'd like to have smooth movement but right now it has somekind of a delay when pressing one key and then the other one right after that. Heres my code of the…
1
vote
6 answers

Vertical circular motion : time(x/y) versus velocity equation

I wanted to simulate the following through animation : A ball starts with a certain velocity at the bottom most point of a vertical circular loop and keeps rolling in it until its velocity permits. For this, I wanted to find velocity/x/y vs. time…
adeeti
  • 13
  • 4
1
vote
1 answer

Large-scale spherical world in a physics engine

(This question is targeted at Cannon.js (by @schteppe), but hopefully answer(s) will be applicable to other engines for the benefit of others not using Cannon.) It seems like one strategy for building a huge spherical world in a physics engine is to…
user993683
1
vote
3 answers

Physics with bouncing balls

Is this the right site to ask this question, since I've been referred to another site two times by now. I'm trying to create bouncing balls with realistic physics. At the moment, when the balls hit each other, they bounce back in the same direction…
1
vote
1 answer

Keep node in view

I have a question: Typically, a node will be removed from the view of its position if it exceeds the device's height. I'm using gravity so it falls back down into the view. How would I make it so the node doesn't remove itself from the view?
DDPWNAGE
  • 1,423
  • 10
  • 37
1
vote
0 answers

Configure 2D collider to allow player to slide along edge rather than crash

I have a 2D player sprite, controlled like the player in "asteroids". (rigidbody2d; boxcollider2d; movement controlled using AddForce/AddTorque for translation/rotation; rotate;accelerate/brake) It moves along a racetrack which also has a…
jqwha
  • 1,599
  • 6
  • 21
  • 32
1
vote
3 answers

Game Development: Open source project like Crayon Physics?

Crayon Physics is a wonderful game because of the real motion of all the objects. Gravity and collision are two very important things in that game. I know that is the reason why it costs $19.95 Are there equivalent open source projects? I'm very…
Martijn Courteaux
  • 67,591
  • 47
  • 198
  • 287
1
vote
1 answer

Missing Relative Transform in AddPhysicsHandleComponent

I'm trying to rebuild the tutorial "Pick Up Physics Object Tutorial" and I need to use "Relative Transform" in "AddPhysicsHandleComponent" but it is not there. On this site…
Plasmaschnee
  • 57
  • 1
  • 2
  • 11
1
vote
1 answer

Drag 3d object using fingers in unity3d

I create a scene has an AR camera and a 3d object. When application starts, I see the object on the screen. I want to move this object using fingers. I tried many codes. But I couldn't find a nice solution for me. AR camera is tagged MainCamera. I…
zakjma
  • 2,030
  • 12
  • 40
  • 81
1
vote
1 answer

XNA Diagonal Movement Key Release

Ok, so say you're playing a top down game. You press W and D to go in the up-right direction. Now you just want to go right, so you release the W key. One would expect you to then change directions and head right, but instead, you continue up-right.…
omni
  • 580
  • 1
  • 6
  • 16
1 2 3
99
100