My Math Forum  

Go Back   My Math Forum > High School Math Forum > Algebra

Algebra Pre-Algebra and Basic Algebra Math Forum


Reply
 
LinkBack Thread Tools Display Modes
March 7th, 2011, 03: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).
1101 is offline  
 
Reply

  My Math Forum > High School Math Forum > Algebra

Tags
projection, scalar, special, type, vector



Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scalar and vector fields, calculating gradients arron1990 Calculus 7 August 9th, 2012 08:46 AM
vector product of a vector and a scalar? 71GA Algebra 1 June 3rd, 2012 02:20 PM
special type of representation desum Number Theory 0 May 24th, 2012 01:26 AM
Need help finding a mathematics book(special type) gaseimasha Math Books 4 August 7th, 2011 11:39 AM
Scalar projection, distance from point to line Unununium111 Calculus 2 January 21st, 2011 05:30 AM





Copyright © 2018 My Math Forum. All rights reserved.