This tutorial explains collision detection between various 2D shapes, including a square and a circle (Section 3). It's a nice tutorial, the Flash animations make it easier to understand.
Type: Posts; User: Snip
This tutorial explains collision detection between various 2D shapes, including a square and a circle (Section 3). It's a nice tutorial, the Flash animations make it easier to understand.
But then I'll lose everything? Or is it possible to install Windows without formatting my C:\ partition?
But I can't even get into Safe Mode. When I select that option (or any other option, like "Most recent hardware configuration that worked") it shows the Windows XP loading screen, then the screen...
Windows is giving me problems... Again. It says something about not being able to boot, maybe because of recent changes in hardware (which there aren't). I've tried all options it gives me (Safe mode...
So I'm looking for a new PC and this one looked nice:
Desktop Computer Compaq Presario SR2079
Intel Pentium D Processor 915 dual-core (2 x 2.8 Ghz)
Intel Viiv Technologie
1 GB DDR2 Memory...
This tutorial might be useful. It shows how to do a collision test for some common shapes.
Doesn't work either. I tried opening it in Linux, but I still get an error. This one might be of more use solving this problem:
When opening the file from the File Browser, it says:
Cannot open...
I don't know how to get in DOS mode (is that even possible with XP?). I tried to copy files using the short dir name (which is "PAUL&M~8"), but I get the same error as mentioned above: "Invalid...
That doesn't work either:
> copy "F:\Paul & Monique\<filename>" "C:\<filename>"
Invalid parameter
copied 0 file(s)
When doing the exact same for a file in directory "Wouter",...
I have a backup of my files on a DVD-RW, but when I try to copy certain files back to my hard disk I get an error:
Can't copy <filename>. Can not read data from source file or source disk
This...
The Boondock Saints - probably my favourite one
Other ones I like are
- Full Metal Jacket
- Fight Club
- Lock, Stock and Two Smoking Barrels
- Batman Begins
This might help you
http://www.harveycartel.org/metanet/tutorials/tutorialA.html
Great explanation of the Separating Axis Theorem (2D Collision Detection).
#include <iostream>
using namespace std;
class Foo
{
public:
void Destroy();
} *global_foo;
You're not using glDrawElements correctly. It should be used like this:
glEnableClientState(GL_VERTEX_ARRAY);
glVertexPointer(3, GL_DOUBLE, 0, mix);
unsigned int...
Try pressing Ctrl+F11 to force it to recompile everything, then press Ctrl+F10 to run the program
But I want to access Child_B's value from within a method of Child_A (both are derived from Parent)
If I have two different classes that are both derived from the same parent class, is it possible for one class to access the parent members of the other class? Example:
#include <iostream>...
Try something like this:
bool key_state[256] = { false };
void update_func()
{
if(key_state['a'] == true) {
// move left
In my game I have a base class "Object", from which other objects are derived (Asteroid, Player, Bullet). All game objects are stored in a std::list<Object *>. Every frame, something like this...
Try this:
or
You can create an array using malloc() and resize it using realloc()
struct Data
{
int foo;
int bar;
};
I have this list which contains a couple of objects: ships and asteroids. To update all positions and process keys, I have this code:
std::vector<SolidObject *>::iterator item =...
I was looking for a Mandriva torrent, and I found this one. However it says i586 in it's title and I have a AMD Athlon 64, so I was wondering if I should download it or not. I don't know the exact...
Actually I think there is another handle, I found it using WindowFromPos() with my cursor's position when moving my mouse on the desktop. When I use this value (0x120088) in CreateWindow() as the...