Καλώς ορίσατε στο dotNETZone.gr - Σύνδεση | Εγγραφή | Βοήθεια

C# and .NET Tips and Tricks

Quests in programming in .NET

Φεβρουάριος 2010 - Δημοσιεύσεις

XNA 2D Basic Collision Detection with Rotation (Scene2Sprite)
In the previous post we have worked with collision detection between roated sprites. In this post we will deal with the situtation where we want to detect whether a specific sprite that can be rotated is in a specific area in the scene (eg a car is on the road in the scene). Suppose that you have the following scenario: A car is driven by the user around the scene. When the car hits the boundaries of the road, the car should lose all of its speed. The user uses the UP/DOWN keys to acelerate/break and LEFT/RIGHT

Διαβάστε περισσότερα »

Posted: Τρίτη, 16 Φεβρουαρίου 2010 7:54 πμ από iwannis | 0 σχόλια
Δημοσίευση στην κατηγορία:
XNA 2D Basic Collision Detection with Rotation (Sprite2Sprite)
(If you are in a hurry and do not want to no how it's done but just do it, dowload the project and extract the CollisionDetection2D.cs file to include in your project that contains the collision detection methods) In my previous post ,we have seen several collision detection techniques that can be used in 2D games in XNA. In that post, we have left out the changes that affect our code when textures can also be rotated . In this post, I intend to fill this gap by picking up from exactly where we stopped and adding

Διαβάστε περισσότερα »

Posted: Τετάρτη, 10 Φεβρουαρίου 2010 7:26 πμ από iwannis | 0 σχόλια
Δημοσίευση στην κατηγορία: