My Math Forum Special type of scalar vector projection.

 Algebra Pre-Algebra and Basic Algebra Math Forum

 March 7th, 2011, 02:00 PM #1 Newbie   Joined: Jun 2009 Posts: 20 Thanks: 0 Special type of scalar vector projection. I'm trying to use the separating axis theorem to determine if two cubes have collided in a game. But I'm having a problem projecting the vertices of a box onto an axis. It is really hard for me to explain the problem in words so here is a picture: http://www.host-a.net/u/1101/Squarepicture.bmp In the picture there are two red squares. The vertices of each square are indicated by the blue dots. The green line running through each of the squares is the axis I want to project the points of the vertices onto. The left square shows how I'm currently projecting the points, by simply taking the dot product of each point with the normalized green axis. However for various reasons this type of projection results in errors when detecting collisions (the game thinks the boxes have collided when they very clearly haven't). The square on the right shows how I would like to project the points of the square (that is sorta along the axis of its normal). Keep in mind that though this picture is in 2D I'm actually working in 3D. So does anyone know how to project the points in this way? (Even knowing the name of this type of projection would be extremely useful since I'd be able to look it up then).

 Tags projection, scalar, special, type, vector

 Thread Tools Display Modes Linear Mode

 Similar Threads Thread Thread Starter Forum Replies Last Post arron1990 Calculus 7 August 9th, 2012 07:46 AM 71GA Algebra 1 June 3rd, 2012 01:20 PM desum Number Theory 0 May 24th, 2012 12:26 AM gaseimasha Math Books 4 August 7th, 2011 10:39 AM Unununium111 Calculus 2 January 21st, 2011 04:30 AM

 Contact - Home - Forums - Cryptocurrency Forum - Top