Results 1 to 1 of 1
Thread: Simple Hit Test?
- 11-01-2010, 05:44 AM #1
Member
- Join Date
- Jan 2010
- Posts
- 43
- Rep Power
- 0
Simple Hit Test?
I'm trying to make a simple physics platformer. I know how it could be done but I don't know the best method. There is an obviously brutish way to create a platformer, and that's to check if the player is touching any and every platform, check what side, and determine which direction you cannot move. Like so-
But that seems primitive and a waste of processor time. It also would seem to bog the system down if you had many objects and many players to make a hittest. A good example of where I think this would fall flat on its face is the massive game minecraft or Oblivion.
http://allyourgameguides.com/wp-cont...-picture-1.png
(I'm estimating a possible 250 million blocks to calculate hittest for each person if it were full. Perhaps 30-50 million in this image; some y-depth not seen)
http://img.photobucket.com/albums/v7.../landscape.jpg
(Not as easy to visualize. But probably more complex then minecraft)
So these games obviously aren't using my method. Are they using a smarter version of my method? Like trimming the area down to around your person? In a tile system like minecraft it might be easy to pinpoint any tile are over pretty easily. But that doesn't apply to oblivion. Anyway, this is more of a general programming question.
Similar Threads
-
Is it possible to test for NaN?
By AJArmstron@aol.com in forum New To JavaReplies: 7Last Post: 05-07-2010, 03:22 AM -
New simple application using a simple database
By webbusiness23 in forum New To JavaReplies: 9Last Post: 08-03-2009, 03:55 AM -
A simple application to test the functionality of the OvalIcon class
By Java Tip in forum java.awtReplies: 0Last Post: 06-24-2008, 12:16 AM -
Help with a very simple method for a very simple beginner.
By cakeman in forum New To JavaReplies: 2Last Post: 05-04-2008, 06:27 PM -
Test Advisory Panel-Telecommute- Test your Java skills + share insights on Java tests
By michelle in forum Jobs OfferedReplies: 0Last Post: 04-05-2008, 01:38 AM
Bookmarks