game-physics Questions
4
Solved
This is a very difficult problem about how to maneuver a spaceship that can both translate and rotate in 3D, for a space game.
The spaceship has n jets placing in various positions and directions....
Neigh asked 16/11, 2016 at 2:53
3
To summarize the problem(s):
I have two bodies in my world so far, one being the ground, the other one being a falling box called "fallingStar".
1) I do not understand why my bullet world is not ...
Hepcat asked 21/12, 2016 at 20:21
1
I am facing a very simple problem about Triggers, but I don't see any way to solve it. I just want the OnTriggerExit function to be called when an object inside the trigger gets disabled.
Here is ...
Aramenta asked 18/1, 2017 at 10:16
2
Solved
Developing with various game physics engines over the years, I've noticed that on the same machine I observe widely different results in physics simulations between runs. Most recently, the Unity e...
Muriah asked 9/12, 2016 at 15:22
0
I'm using plane geometries as walls in a game. I'm using ray caster to provide the player from moving through them. The problem is that planes only works one way. When the player comes from the "fr...
Fatherinlaw asked 29/11, 2016 at 10:58
8
Solved
I wonder if there is a tool that could be used for easy generation of complex physics bodies in SpriteKit. I would like to have a volume based physical bodies with polygon-type shapes. SpriteKit al...
Seedling asked 26/9, 2013 at 23:6
1
Solved
It is hard to describe in plain text, so I recorded a GIF to demonstrate.
https://public.lightpic.info/image/2B1F_582465841.gif
I am currently working on a project that requires such effect. Up t...
Conjunctiva asked 11/11, 2016 at 13:21
2
Solved
So I am currently working on a 2D platformer game and I have realized a big issue with my collision programming. You see, to find out collisions with the player I just moved the player rect around,...
Allege asked 4/11, 2016 at 20:43
1
Solved
I am using Matter.js physics in an attempt to create soft bodies. I was able to create a body like this:
However I am not sure if this is the "soft body" I want. It is true that this body is not...
Indehiscent asked 16/10, 2016 at 19:25
1
Solved
I am working on an asteroids-like arcade game using HTML's canvas and JavaScript. I currently have a bunch of randomly generated shapes ("asteroids") with a random number of points (3, 4, or 5) and...
Robledo asked 18/10, 2016 at 1:0
1
Solved
I'm making an pool game with cocos2dx.
First, i setup the edgeBox with this parameters PhysicsMaterial(1.0f, 1.0f, 0.8f)
And then these 2 balls PhysicsMaterial(1.0f, 1.0f, 0.5f)
On the update func...
Pyknic asked 27/9, 2016 at 4:42
3
Solved
I am currently using Box2d, more precisely the Java port jBox2d.
I have a circle that is colliding with other circles when falling (all those circles form a kind of a crank, see picture below).
...
Ignominious asked 26/1, 2013 at 12:47
7
I am building an iOS game aimed for the new iOS 7 and Sprite Kit, using emitter nodes and physics to enhance gameplay. While developing the app, I ran into a serious problem: you create your scenes...
Lillis asked 8/10, 2013 at 15:1
0
I am seeming to have difficulty keeping my sprite nodes inside a map boundary that I have set up in the following way:
I have an SKNode *enemy that moves around an SKScene by goals and behaviors co...
Soupandfish asked 27/7, 2016 at 5:25
1
Solved
I'm making a little game just for fun and I got stuck making the bullets come out of the gun. In the code below, the direction of the player is a degree angle called rot.
float gunOffsetX = 106, gu...
Decalcomania asked 20/6, 2016 at 16:54
2
Solved
I am getting lost in how nodespace coordinates and rotation are handled in scenekit.
How do I get the direction a node is facing after rotation so I can then apply force in that direction.
I assu...
Sandbox asked 9/11, 2014 at 3:43
3
I have an node in space (no angular dampening, no friction, no gravity) and I apply a torque to it (20 newton meters) over 1 second. It begins to spin and will continue forever. If I apply an inver...
Abiogenetic asked 21/10, 2015 at 17:59
1
Solved
How to apply a friction in a Phaser.P2.body?
In a Air-Hockey phaser based game.
How to "turn-off the air-flow" from hockey table ?,
In this example: http://jsfiddle.net/ywzmkso3/32/
// Initializ...
Gazpacho asked 31/5, 2016 at 0:7
4
Solved
I'm working on a 3D tile based game and I'm using AABB collision detection. For every cube that the player is intersecting, I find the axis along which the player is intersecting the cube the least...
Phasia asked 10/10, 2010 at 22:31
0
I believe I have come across a bug in Unity. When using Rigidbody.AddExplosionForce() on a Rigidbody with an attached trigger Collider, the force that the object feels is affected by the size of th...
Alternant asked 3/5, 2016 at 22:11
3
I'm trying to use Bullet Physics for collision detection only. I don't need it to move any objects for me or handle rendering with callbacks. I just want to update object locations every frame and ...
Taphole asked 24/6, 2012 at 7:21
1
Solved
I've got the linear component of collision resolution down relatively well, but I can't quite figure out how to do the same for the angular one. From what I've read, it's something like... torque =...
Dorsy asked 22/4, 2016 at 3:47
1
Is there a way to get contact force of a collision? I tried to do this by getting the velocity in the OnCollisionEnter() method. But it's giving velocity after the contact, which isn't useful to me...
Breger asked 3/4, 2016 at 16:6
3
Solved
There is a commonly used verlet-integration formula on the web by Johnathan Dummer, called Time-Corrected Verlet. However I've read several forum posts, that people get weird or unexpected results ...
Feather asked 22/9, 2015 at 6:12
3
I'm currently building a simplified Reaction Control System for a Satellite game, and need a way to use the system to align the satellite to a given unit direction in world-space coordinates. Becau...
Brasca asked 11/11, 2015 at 10:30
© 2022 - 2024 — McMap. All rights reserved.