game-physics Questions

1

I'm trying to write a function to handle movement within a game I'm programming. What I have nearly works, but there are a couple situations where it breaks down. I've coded up a minimal demonstra...
Acetone asked 10/5, 2019 at 19:49

1

I have 2 rigid bodies (a & b) and 1 fix joint constraint (with relative transformation rela). My objectives are to achieve :- No. 1. b.transform = a.transform * rela No. 2. Center of mass (...
Fabulist asked 3/4, 2019 at 9:24

2

Solved

I'm working on a 2D top-down open-world game in which there is a character who can be moved by keyboard functions. The movement is caused by Rigidbody.AddForce(). The problem is that the moving spe...
Ciceronian asked 26/3, 2019 at 20:23

1

I'm relatively new to asking questions here, so please bear with me. I am trying to create a top down driving game with Matter.js as the primary physics engine. I would like the red car to collide ...
Dickie asked 21/6, 2018 at 2:27

2

Solved

After some time of "development" of the JavaScript game, I've came to a great idea, or so it seemed / sounded. I was thinking of creating an entity which would represent lava. That lava would move...
Mcconaghy asked 12/3, 2019 at 13:58

3

Solved

I'm a fairly new app dev and very new to Sprite Kit. I am creating a game where I want a ball to always fall downward as if it were in gravity. This is just a 2d app so all I want is when the ball ...
Bulla asked 27/3, 2014 at 20:39

2

I'm trying to simulate a soccer game. I have a SCNPlane that simulates the court. I have imported a Soccer goal 3d model (.dae file) and also a ball model (.dae). My ball has a dynamic physics bo...
Covington asked 27/10, 2017 at 19:57

1

I'm not using any engine, but instead trying to build my own softbody dynamics for fun using verlet integeration. I made a cube defined by 4x4 points with segments keeping its shape like so: I h...
Firstrate asked 17/4, 2018 at 13:33

1

Solved

I code a mini Android game scenario inspired by Space Invaders and Moon Patrol. It is possible to shoot an alien horizontally (see above). It is also possible to shoot an alien vertically (see ...
Filet asked 31/5, 2018 at 2:37

2

Solved

Making a game using Golang since it seems to work quite well for games. I made the player face the mouse always, but wanted a turn rate to make certain characters turn slower than others. Here is h...
Edmonton asked 8/4, 2018 at 5:45

3

Solved

I am modelling a particle in 3D space. {0} The particle starts at time t0 from a known position P0 with a velocity V0. The velocity is computed using its known previous position of P-1 at t-1. ...
Isolationism asked 22/2, 2018 at 16:6

3

Solved

I'm creating a side-scrolling endless space themed game using canvas and JavaScript. I'm controlling a spaceship just by using the up and down arrows and I want to implement some kind of movement e...
Escobedo asked 11/3, 2013 at 16:51

2

Solved

So I've wrote a microbe animation. It's all cool, but I think that it would be even better, if the microbe would be able to eat diatoms, and to destroy bubbles. The issue is that the microbe is ma...

2

I attach a rigidbody to a HingeJoint in Unity. It's attached no at the the center of an anchor of a joint. To stop it from falling I set Use Motor = true, Target Velocity = 0 and apply some force...
Palish asked 12/6, 2017 at 10:47

5

Solved

I am working on some shaders, and I need to transform normals. I read in few tutorials the way you transform normals is you multiply them with the transpose of the inverse of the modelview matrix...
Degree asked 30/11, 2012 at 22:59

2

According to several developers (link1, link2) the proper way to have a constant frame rate with requestAnimationFrame is to adjust the "last rendered" time within the game loop as follows: functi...
Chong asked 19/9, 2017 at 12:50

3

Solved

So, I am currently reinventing the wheel (and learning a lot) by trying my hand at making a simple physics engine for my game engine. I have been searching the internet, trying (and failing) to fix...
Phonon asked 12/9, 2017 at 9:37

2

Solved

So there is a problem that whenever I use Physics.OverlapBox to check how many objects in that area exist it always output 0. Here is my stripped down code: void Update () { a(); } void a() { Co...

2

I am trying to create custom components in Android using Surfaceview and canvas drawing. The components are re-sizable and rotatable by touching. Consider creating an image view its Top,Right,Botto...
Jane asked 17/10, 2012 at 12:19

5

Solved

I have pitch, roll, and yaw angles. How would I convert these to a directional vector? It'd be especially cool if you can show me a quaternion and/or matrix representation of this!
Excepting asked 14/10, 2009 at 19:50

3

Solved

I'm creating a simple asteroids-like game in CSS and JS using the DOM over canvas for...experimentation purposes. My code is pretty small in this example to make it easy to see what's going on be...
Leonoraleonore asked 1/5, 2017 at 17:40

2

I am programming a game using OpenGL GLUT code, and I am applying a game developing technique that consists in measuring the time consumed on each iteration of the game's main loop, so you can use ...
Woad asked 2/5, 2017 at 19:1

3

Solved

Have a very small snippet of an asteroids-like game I'm working on using only the DOM without Canvas. I have the "ship" moving pretty smoothly when arrow keys are pressed but how would I go about m...
Certain asked 2/5, 2017 at 5:7

1

Solved

I have a gravity vector (in the form [r, theta]) which I add to my ball's velocity vector. For some reason, the ball doesn't return to the same height after bouncing, but instead slowly loses heigh...
Twocolor asked 1/5, 2017 at 23:40

2

Solved

I am trying to create a chain of moving objects for a game (AS3). So far, I can drag objects behind another object, but all I can do is make a link move closer to another link based on distance. It...
Ditmore asked 5/3, 2017 at 14:3

© 2022 - 2024 — McMap. All rights reserved.