Let the hate flow through you!chili wrote:You want this... don't you... >: )
Search found 21 matches
- August 9th, 2012, 3:03 pm
- Forum: Everything
- Topic: Hey Asimov!
- Replies: 22
- Views: 9895
Re: Hey Asimov!
- June 4th, 2012, 8:27 pm
- Forum: Everything
- Topic: Problems with classes and headers :/
- Replies: 4
- Views: 2621
Re: Problems with classes and headers :/
You're missing a curly brace (and semicolon) after the class declaration. The begin class also lacks a semicolon after the curly brace.
These kinds of errors are often difficult to find, because the error often shows up in a different file.
These kinds of errors are often difficult to find, because the error often shows up in a different file.
- June 4th, 2012, 7:52 am
- Forum: Everything
- Topic: Calling the Constuctor
- Replies: 5
- Views: 2871
Re: Calling the Constuctor
The first type of syntax is called an initializer list. This is of interest if your class inherits from some base class, and you want something other than the default constructor to be called. Ex. class Shape { public: Shape(); Shape(int a); }; class Rectangle : public Shape { public: Rectangle () {...
- May 30th, 2012, 8:27 am
- Forum: Everything
- Topic: Vertexes?
- Replies: 12
- Views: 7020
Re: Vertexes?
I don't know what's wrong, but looking at the HRESULTS from the different function calls, it revealed that DrawPrimitive did not succeed. The error code returned was 0x8876086C. There is a tool called directx error lookup which I think is included with the SDK. Try to search for it in the start menu...
- May 20th, 2012, 8:24 pm
- Forum: Everything
- Topic: Sound Playing error
- Replies: 8
- Views: 3565
Re: Sound Playing error
Damn it, that can't be right. Didn't notice the picture with the error. It must be the sample rate that's different. I guess you could set some breakpoints around to find out what the actual values are.
- May 20th, 2012, 8:22 pm
- Forum: Everything
- Topic: Sound Playing error
- Replies: 8
- Views: 3565
Re: Sound Playing error
Try switching from 2 to 1 channel. (All you have to do is swap a few numbers)
- May 18th, 2012, 12:07 pm
- Forum: Everything
- Topic: Game concept
- Replies: 10
- Views: 7597
Re: Game concept
I guess you could say it keeps track of it, since I have the velocities and mass. But for the collisions I use impulses. Right now I'm trying to convert the code to using polymorphism for collideables and drawables etc. That should make the code more understandable, and easier to extend with more ob...
- May 16th, 2012, 3:15 pm
- Forum: Everything
- Topic: Game concept
- Replies: 10
- Views: 7597
Re: Game concept
Ah, now I understand. The problem is that when a collision happens, sometimes the outgoing velocity is very small, and in that case, the ball should rather be in contact with the surface than bounce back and forth. I have an epsilonSpeed for this. You can set it smaller and see if that helps (it's i...
- May 16th, 2012, 2:39 pm
- Forum: Everything
- Topic: Game concept
- Replies: 10
- Views: 7597
Re: Game concept
Ye, there's still some problems I haven't figured out, but I thought I got rid of the ball outside window problems. Does it happen all the time? About the ball, if you check out the constructor for Bomb, there's a ton of parameters you can change. If you change the "coeffRestitution" closer to 1, it...
- May 16th, 2012, 2:02 pm
- Forum: Everything
- Topic: Game concept
- Replies: 10
- Views: 7597
Re: Game concept
It was cool that you used my Sokoban program in the last tutorial Chili :) I look forward to seeing your finished solver. Anyway, I've been working on some physics to get a ball to behave naturally during collisions and such. I found some helpful articles here: http://chrishecker.com/Rigid_Body_Dyna...