Skip to content

Attempt at an "ideal" collision framework using rational numbers

Notifications You must be signed in to change notification settings

REX2626/Collision-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collision Framework

TODO:

Add collisions for rotated objects (make rotation relative, and use corners of square)

Add rotation speed into collision system

Collisions will make moments, which will rotate a square The moment will occur wherever the square touches the other square

Improve stability, fix any edge cases

Improve performance if possible

Done:

Add basic pygame display

Add basic square objects

Make square objects move around, bouncing off walls

Make positions and velocities be fractions instead of floats (built in fractions or self made)

Make time move forward until there is a collision, then do the collision To do the collision: swap the velocities of the objects

Add multiple collisions per frame

Add multiple collision at same the time

Add multile collisions touching at the same time

Add Immovable objects

Add rotation

Potential:

Make a soft body square, 4 corners are the points

About

Attempt at an "ideal" collision framework using rational numbers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages