Java 2D physics from scratch - Rigid Body Test #3: Box vs Box collision with rotation

preview_player
Показать описание
Java 2D physics test #3: impulse resolution test (box vs box collision with rotation).

After many tries, finally i could understand and implement the concept of supporting points :)

References:
Рекомендации по теме
Комментарии
Автор

Congratulations on this great milestone of yours :-) ! Can't wait till you have friction and gravity included! Keep it up!

paweoriol
Автор

This is awesome! I know how hard it is to implement the supporting points for the collision detection. But if you want physics, then you need things like that :/.

I tried to implement such an Rigidbody simulation too, but i'm failing with the rotational stuff :(.
Awesome channel by the way :D So much cool things!

pixel_physics
Автор

Help! I am trying to make quad collision detection and I can't make it collide with quads. I removed the instance checker from Collision.java (instanceof Box.. stuff). In the Quad.java I made a constructor to make a quad using a total of 8 doubles (4 for x and 4 for y). Then I made Quad.java (that I made) extend from Box.java. The quad won't collide when I run the code. Now I have no idea where to begin searching the problem's origin.

moppiloota
Автор

Wow this is so cool. I am doing something similar for a school project and i was wondering if you know any resources i can use to learn about the physics?

nielshp
Автор

Really awesome, would be nice to see how is it done.

mreazl
Автор

Hi, can I use part of your code for a GitHub project (I'll only take inspiration as I should modify it to adapt it to my project)? Obviously, I will give credits to your video and repository. Thanks!

francescosollazzi
Автор

Hey man, can you help me make a 3D top down shooter game with just cubes, and a few textures? I appreciate it!

yolinkiv
Автор

Ah well I wasn't first this time, but that's still really cool :-)

proccessingunit
Автор

I am working with collision too, check this out "Duck Jump Java Collision"

factionmanager