Newton/Irrlicht Character Controller Demo update 10/28/05
-
- Posts: 395
- Joined: Fri Apr 08, 2005 8:46 pm
Newton/Irrlicht Character Controller Demo update 10/28/05
I'm working on a widget demo with the following features, using Newton and Irrlicht.
I've finished the following:
FPS Camera
Following Camera
Jump, Crouch
Stairs
Elevators (Mounted and to-floor)
Trigger Areas
Sliding Doors
Source and Demo are available at
http://webpages.charter.net/hentond/images/newirr.zip
Comments/suggestions appreciated!
I've finished the following:
FPS Camera
Following Camera
Jump, Crouch
Stairs
Elevators (Mounted and to-floor)
Trigger Areas
Sliding Doors
Source and Demo are available at
http://webpages.charter.net/hentond/images/newirr.zip
Comments/suggestions appreciated!
Last edited by dhenton9000 on Fri Oct 28, 2005 11:39 pm, edited 1 time in total.
That is a great demo! The elevators need a little work because they tend to bounce or go too far but for the most part you've done a great job. I think the only thing that's lacking now is strafing pretty much. It's also great how you have sound in this demo. This is one of the first irrlicht demos with sounds I've seen besides the tech demo. Good job.
-
- Posts: 395
- Joined: Fri Apr 08, 2005 8:46 pm
Heres a newton discussion that might be relevantAnonymous wrote:has anyone gotten the source to compile in Dev-C++? no matter what i do, i cant get it to run correctly...
http://www.physicsengine.com/forum/view ... sc&start=0
Nice demo but i have to say one think:
MOUSE CONTROL! o well more:
make "E" key to open and ctrl for Crouch. (meybe i.m playing a little too much )
MOUSE CONTROL! o well more:
make "E" key to open and ctrl for Crouch. (meybe i.m playing a little too much )
Galactic Dream Best RTS game
http://www.rageofwar.net
Engage in epic galactic warfare, guide your people through the galaxy! in the real time strategy game made with Irrlicht
http://www.evolutionvault.com
http://www.rageofwar.net
Engage in epic galactic warfare, guide your people through the galaxy! in the real time strategy game made with Irrlicht
http://www.evolutionvault.com
-
- Posts: 395
- Joined: Fri Apr 08, 2005 8:46 pm
-
- Posts: 395
- Joined: Fri Apr 08, 2005 8:46 pm
-
- Posts: 395
- Joined: Fri Apr 08, 2005 8:46 pm
In the Newton simulator, you have to tell it what forces apply to your objects at all times. So gravity is applied to all objects. -10 is about the true gravitational constant. Negative for pointing down. Its defined in CNewtonBase and used everywhere. CNewtonBox shows a simple application of gravity in its ApplyForceHandler.zOrt wrote:I have a question. Why in Control of Player you use 10.0f for gravity and when the player JUMP you use the variable "timestep" ?
The timestep variable is used to calculate the force that is needed to jump a certain distance.
Code: Select all
jumpvector.Y = mass* (PLAYER_JUMP_SPEED - velocity.Y)/timestep;
NewtonBodyAddForce(body,&jumpvector.X);
m_keyMap[8].state = false;
m_canJump = false;
Code: Select all
jumpvector.Y = ARBITARY_CONSTANT;