Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
killames5733y@Wisecrack I need a fast way of processing collisions and momentum that picks out which objects to test simply put
-
killames5733y@Wisecrack like if there are 10s of 1000s of objects of differing size all being simulated at varying speeds and the point of contact and resulting velocity and direction while accounting for other forces in effect are accounted for
-
@killames simple polygons, bounding boxes, circles, or are the collision shapes complex?
-
killames5733y@Wisecrack starting out spheres but the idea is to make them complex and add deforming materials that can shatter to form new objects
But the big thing is getting an algorithm to weed out which collisions to check for as o to n can take awhile -
@killames the only ones I ever implemented were bounding box and points based on circles.
There is something about intersecting vectors and subdividing a world to determine what objects to perform collision checks on.
For example if you're brute forcing it, and all your objects that can collide are in subsector IJK, there no reason to perform checks on line objects isolated in other sectors. Nor is there any reason to check for collisions between any two objects that are in physically separate regions of the level or screen. -
killames5733y@Wisecrack yeah I thought of that determining what quadrants or rather divisions their course passes through and sorting by velocity to test the fastest first
When extracting intersections of lines for another reason tried this as well it’s pretty cpu intensive
The way I implemented it anyway
Related Rants
-
hardfault5I am writing a graphics library for low power small memory footprint micro controllers to implement pebble wat...
-
RememberMe4Making my own game console. I work with FPGAs and have access to a bunch of pretty nice dev boards, so buildi...
-
PonySlaystation5I haven't started yet, but I will start with a small and simple operating system for microcontrollers written ...
Implementing havok
For a personal project requiring physics
random
wk276