Questions tagged [collision]

The intersection of one or more objects or concepts, such as communications packets or function names. For questions about collision detection (in computer graphics) use the [collision-detection] tag instead.

May be used to describe graphical elements (as in a game setting), networking (when multiple packets arrive at the same location simultaneously), RF communication when transmissions overlap and interrupt one another or in programming when disparate functions have similar naming conventions (see also namespace).

For questions about collision detection (in computer graphics) use instead.


Related tags

3094 questions
0
votes
0 answers

Collision deformer - Maya Python API

I'm developing a collision deformer-based Maya PythonApi. At that point, the deformer is working, and I can apply it on the go, but nothing happens when it collides with another geo. In the second script, you can find the connections from the second…
0
votes
1 answer

How to create a (math) function for the position of a billiard ball when considering friction

so I'm creating a billiard ball simulation. The current version I have calculates the new position of the ball for each step, but I would like to create a math function (f(x)) for the balls position. This is not too hard, but what is really tripping…
Noob
  • 3
  • 1
0
votes
0 answers

I can't get collisions between player and walls to work correctly, player flies up and camera spazzes out during the collision

I cant get collisions between player and walls to work correctly, player flies up and camera spazzes out during the collision I've been making a maze game and whenever the player collides with the wall, the camera spins out and the player flies up,…
RSXII
  • 1
  • 1
0
votes
1 answer

Aframe - set to a model gltf (blender) the correct ammo-shape

I'm creating a scene in A-frame and the physics system is given by ammo driver. I'm trying to import a model 3D (create in Blender) with it's own mesh collision (no a basic primitive like a box or a sphere), but it's that possible? If it is, how can…
Ana
  • 1
0
votes
0 answers

Pathfinding in direction of movement

so I have a kind of problem I brought on myself... I have a tile grid where a tank can move via A* calculations. But to optimize the number of nodes I used Bresenham's line of sight and so I have smooth movement between nodes and avoid the ladder…
Corta
  • 1
0
votes
1 answer

How to Handle Collision in 3D Grid based Game

How do games like 3D Games Minecraft with a grid handle collisions their are thousands of block divided into chunks each with its own bounding box how is collision detected calculated and processed i tried AABB but it didnt work well with each block…
0
votes
1 answer

SpriteKit collision error, not sure how to get a function to run when two sprite nodes hit each other

I'm getting the error: Cannot convert value of type 'SKSpriteNode.Type' to expected argument type 'SKSpriteNode' I've been having trouble just trying to get the collisionBullet() function to run when the sprite nodes enemy and smallball collide. I'm…
0
votes
0 answers

Transparent image to hitbox collision

I am currently creating a tiny platformer with pygame and transparent images. When it came to collision, I was stumped. I soon came up with looping over all the pixels in my players hitbox until it found an opaque pixel in the image. This worked…
Connor Club
  • 64
  • 1
  • 7
0
votes
0 answers

Object collision after rotation Fabricjs

After rotating an object on the canvas, there is a problem when object collision, it flies away when the rotated object touches another. I looked through all the articles, I did not find anything. I am using fabricjs…
0
votes
2 answers

problems in collision detection when one object is smushed between other two with greater mass

I'm trying to simulate perfect elastic collision between 3 blocks. The two on the edges have a way greater mass than the one in the center. Let's call the heavier ones h1 and h2, and the lighter l1. When they get to a position when l1 is the only…
Osmar
  • 198
  • 9
0
votes
1 answer

How to detect when an object stops colliding?

How do I stop being to interact when I stop colliding with an object? This script is added to a chest in Unity (2d). I can walk around, press E, nothing happens, then when I collide with the chest I am able to interact with it anywhere. I just…
rojert
  • 11
0
votes
2 answers

OnCollisionEnter does not work upon initial collision - Unity 3D

I am a beginner in Unity and I am currently making a simple game. I have a problem where upon initial collision, the event that I wanted to happen does not trigger or in other words the OnCollisionEnter is not working upon initial collision. The…
Richard Johnson
  • 309
  • 4
  • 17
0
votes
0 answers

How can I set the origin of tiles in Godot tile maps?

My problem: I need to set the origin of the individual tiles in a Godot tile map so Y-Sort works right, but I can't use the Tex Offset, because then my colliders are misplaced. Does anyone know a way to fix this? Thanks in advance!
MoPaMo
  • 517
  • 6
  • 24
0
votes
0 answers

Collision not works

I want to if player collision to enemy, it shows the debug. But its not working please Help... public class Hasar : MonoBehaviour { public float can; // Start is called before the first frame update void Start() { } // Update is called once…
0
votes
0 answers

collide sound not playing in pygame

I'm a newbie and following along to this tutorial to create a little endless runner in pygame. I'm finished with the code and now I want to add some polish, ie a sound that plays when the player collides with an object. However, the code isn't…
apostopal
  • 1
  • 1
1 2 3
99
100