game-physics Questions

4

Solved

I have a SceneKit game in swift and in it I have a car with a dynamic physics body that is set up like this: let carScene = SCNScene(named: "art.scnassets/truck.scn")! let carNode = carScene.root...
Kimi asked 15/8, 2017 at 16:9

3

Solved

I have a projectile object that is moving along a velocity vector. I need to ensure that the object is always facing in the direction of the velocity vector. Furthermore, I am representing object r...
Ilise asked 25/10, 2009 at 5:55

2

I have two nodes, and I want to detect a collision between them, but for some reason func didBegin(_ contact: SKPhysicsContact) { is not being called. It is a ball and a paddle: ball.physicsB...
Overfeed asked 3/6, 2017 at 2:15

1

Which Physics body would be the best for, let's say the player character, enemy and collectibles. StaticBodies are quite different and easy but it is very confusing when we have to choose between a...
Pokeberry asked 2/3, 2023 at 15:38

3

Solved

In Unity, say you have a 3D object, Of course, it's trivial to get the AABB, Unity has direct functions for that, (You might have to "add up all the bounding boxes of the renderers" in ...
Darbee asked 18/8, 2018 at 6:29

3

Solved

So I built some time ago a little Breakout clone, and I wanted to upgrade it a little bit, mostly for the collisions. When I first made it I had a basic "collision" detection between my ball and my...
Throb asked 28/7, 2017 at 10:9

5

Solved

In unity, i have a racket which is supposed to hit a ball, and the racket is controlled directly by the mouse, i.e the bat is being moved by the mouse using mouse axes and the using transform.trans...
Compliant asked 9/9, 2011 at 16:47

1

Solved

I have my entity which has also physics I check for it with the if let syntax: if let scoot = scooter as? HasPhysics { ... } this works as charm I am able to get the user tap by using UITapGesture...
Pick asked 9/2, 2022 at 8:32

1

I am currently working on a very simple 'Falling Sand' simulation game in C++ and SDL2, and am having problems with getting water to flow in a more realistic manner. I basically have a grid of cel...

1

I'm currently developing a building system for my 2D top down game, and the last step is to check if there are any objects such as a tree or player obstructing the item from being placed. After doi...
Tongs asked 17/8, 2021 at 2:25

2

Solved

This question is regarding phaser.io. Can someone show me how to make objects inside a group collide with each other. Right now when i do, //board is the group and it has many elements //Floor is ...
Cheloid asked 8/2, 2015 at 7:13

1

I am looking through the recently open-sourced NVidia PhysX 3.4 and all I find are C++ classes - is the a header version or wrapper API that is C only?
Courtney asked 8/12, 2018 at 15:1

1

Solved

I'm developing a game where the player is a circle and tiles are squares. The user moves the avatar (circle) with the keyboard, and should not be able to collide with tiles (squares). Also, I would...

2

Solved

Was somebody trying to implement 4d or n-dimension physics realtime (or not) engine? What difficulties in this implementation, compare to 3d and 2d physics engines? Of course, one of which is pres...
Irrational asked 19/9, 2012 at 14:57

2

Solved

There seems to be a lot of confusing/conflicting advice out there about when you should or should not multiply a quantity by Time.deltaTime. So I was wondering, as it pertains to the Unity physics ...
Mu asked 26/8, 2020 at 19:7

2

I have a basic code below. I am trying that the player not slide down on slopes. My slopes now are 45°. If the player stop movement on slope, it will slide down (maybe because velocity.y += delta *...
Nide asked 28/7, 2017 at 15:21

2

I want to know an approximate 3D position and 3D normal of collision site between two 3D convex hulls (A vs B). The CPU in parenthesis shows relative CPU-time needed in my finished program. Part...
Donniedonnish asked 6/7, 2019 at 8:16

4

Summary This question is in JavaScript, but an answer in any language, pseudo-code, or just the maths would be great! I have been trying to implement the Separating-Axis-Theorem to accomplish the...

5

Solved

i am using cocos2d template with Box2d but when i import Box2d.h in my project it gives me error cassert fiel not found i have cocos2d version 2.0 please help me
Nevernever asked 24/8, 2012 at 11:38

1

I'm trying to calculate what angle to hit a pool ball and predict where ball will go to.. I thought target ball should move within a normal direction.. but it moves on totally different direction ...
Maxillary asked 16/6, 2018 at 9:54

6

I have been creating my own very simple test game based on Breakout while learning SpriteKit (using iOS Games by Tutorials by Ray Wenderlich et al.) to see if I can apply concepts that I have learn...
Alphard asked 27/12, 2014 at 20:56

2

Solved

I'm trying to create a platform game using Tiled to create my maps. I've made my map and exported it as a .json object. I can make the map appear in my game, but my sprite falls through my floor. ...
Hammerhead asked 11/12, 2015 at 0:17

8

Solved

I am having trouble keeping game objects inside of a contained space. When they reach the edge, there is some momentary push back but then they will go right through the wall. I am using a Box Col...
Spokeswoman asked 13/3, 2012 at 16:39

2

I've been researching this question for hours and for some reason I haven't been able to find the solution. Given a convex polygon that is defined as an array of points in clockwise order around t...
Letha asked 29/6, 2015 at 1:8

1

Solved

I'm developing a Javascript based multiplayer game. So far I have the basic server, client and networking ready. I did have an issue where my player was moving faster on a 120Hz screen as opposed ...
Copland asked 20/9, 2019 at 9:41

© 2022 - 2024 — McMap. All rights reserved.