Questions tagged as '2d'

1
answer

Rebounding angle of two Circles

How can I calculate the bounce angle between two circles ... ?? I use the following code to check and resolve collisions. -- CHECK COLLISIONS BALLS AND RESOLVE ... function CheckCollisionResolve(a, b) local dx = a.x - b.x; local dy...
asked by 08.06.2017 / 18:30
1
answer

Assign values to a 2d vector in c ++ [closed]

I'm trying to assign values to a 2d vector in c ++ This is how it is defined, where rows and columns are integers defined. vector < vector <int>> vec(filas , vector <int> (columnas)); what I want to assign to each space of...
asked by 07.07.2018 / 10:02
1
answer

Vertical ladder in 2D game

Let's see I'm designing a 2D game with unity, but I'm looking for a solution to make a method in my main character's script where when entering a collider2D (with a Trigger2D) placed in his vertical stair sprite, he can activate your climb anima...
asked by 02.12.2018 / 16:28
0
answers

Move a meter a Body in Libjdx

I have a body of one meter by one meter. With a density of 1. How could the function be applied correctly so that one meter was pushed upwards? I'm trying this, but it's not very accurate If I want to use this function, but I do not kno...
asked by 10.11.2018 / 07:57
0
answers

2D function smooth

I have a 2D signal and I want to create some kind of envelope. It has to be symmetric between maxima, so an envelope filter does not fit what I want. The local maxima have to spread a bit, I'm trying to simulate a fabric and the behavior of a th...
asked by 12.09.2017 / 12:09