Posts by Gabriel • 1 point
2 posts
- 
		-2 votes2 answers2961 viewsA: Generate array with random values in Javascriptfor a more readable code, you can use the above solution, but if you want a smaller code, you can use this one // [...Array(10)] gera um array com 10 undefineds // .map() vai preencher todos os… javascriptanswered Gabriel 1
- 
		-3 votes1 answer50 viewsQ: collision response between circles is not working in javascriptI’m trying to implement the equations for the two-circle collision response in a program of mine, but all of them either made the ball speed incredibly high or only works 50% of the time (in the…