Skip to main content
removed blacklisted tag
Link
Pikalek
  • 12.5k
  • 5
  • 45
  • 52
Tweeted twitter.com/#!/StackGameDev/status/213761401506889729
deleted 2 characters in body; edited title
Source Link
House
  • 73.3k
  • 17
  • 185
  • 273

How to Determinine Collision Direction Between Two Rectanglesdetermine collision direction between two rectangles?

I am trying to figure out how to determine wasthe direction a collision occurs between two Rectanglesrectangles.

One Rectanglerectangle does not move. TheThe other Rectanglerectangle has a velocity in any direction. WhenWhen a collision occurs, I want to be able to set the position of the moving Rectanglerectangle to the point of impact.

I seem to be stuck in determining from what direction the impact occurs. If I am moving strictly Verticallyvertically or Horizontallyhorizontally I manage great detection. But when moving in both directions at the same time, strange things happen.

What is the best way to determine what direction a collision occurs between two rectangles?

How to Determinine Collision Direction Between Two Rectangles?

I am trying to figure out how to determine was direction a collision occurs between two Rectangles.

One Rectangle does not move. The other Rectangle has a velocity in any direction. When a collision occurs, I want to be able to set the position of the moving Rectangle to the point of impact.

I seem to be stuck in determining from what direction the impact occurs. If I am moving strictly Vertically or Horizontally I manage great detection. But when moving in both directions at the same time, strange things happen.

What is the best way to determine what direction a collision occurs between two rectangles?

How to determine collision direction between two rectangles?

I am trying to figure out how to determine the direction a collision occurs between two rectangles.

One rectangle does not move. The other rectangle has a velocity in any direction. When a collision occurs, I want to be able to set the position of the moving rectangle to the point of impact.

I seem to be stuck in determining from what direction the impact occurs. If I am moving strictly vertically or horizontally I manage great detection. But when moving in both directions at the same time, strange things happen.

What is the best way to determine what direction a collision occurs between two rectangles?

Turning the title into a question, and removing references to XNA because A) It's irrelevant B) It's a tag
Source Link
John McDonald
  • 6.8k
  • 2
  • 32
  • 45

How to Determinine Collision Detection Direction in XNABetween Two Rectangles?

Using XNA.

I am trying to figure out how to determine was direction a collision occurs between two Rectangles.

One Rectangle does not move. The other Rectangle has a velocity in any direction. When a collision occurs, I want to be able to set the position of the moving Rectangle to the point of impact.

I seem to be stuck in determining from what direction the impact occurs. If I am moving strictly Vertically or Horizontally I manage great detection. But when moving in both directions at the same time, strange things happen.

What is the best way to determine what direction a collision occurs between two rectangles?

Collision Detection Direction in XNA

Using XNA.

I am trying to figure out how to determine was direction a collision occurs between two Rectangles.

One Rectangle does not move. The other Rectangle has a velocity in any direction. When a collision occurs, I want to be able to set the position of the moving Rectangle to the point of impact.

I seem to be stuck in determining from what direction the impact occurs. If I am moving strictly Vertically or Horizontally I manage great detection. But when moving in both directions at the same time, strange things happen.

What is the best way to determine what direction a collision occurs between two rectangles?

How to Determinine Collision Direction Between Two Rectangles?

I am trying to figure out how to determine was direction a collision occurs between two Rectangles.

One Rectangle does not move. The other Rectangle has a velocity in any direction. When a collision occurs, I want to be able to set the position of the moving Rectangle to the point of impact.

I seem to be stuck in determining from what direction the impact occurs. If I am moving strictly Vertically or Horizontally I manage great detection. But when moving in both directions at the same time, strange things happen.

What is the best way to determine what direction a collision occurs between two rectangles?

Source Link
jgallant
  • 8.4k
  • 7
  • 34
  • 46
Loading