Paying for physics integration (character controller).
Paying for physics integration (character controller).
Hello! I was wondering if anyone would like to help me and my friend add physics to our game, we already use irrBullet but it's not enough since we need to be able to walk up hills etc (were gonna use heightmaps for the game).
We can pay for the help but keep in mind were not rich lol, so if you can PM us with a offer/price then we would be very happy! Thanks!
(Oh we use Code::Blocks mingw for the code.)
We can pay for the help but keep in mind were not rich lol, so if you can PM us with a offer/price then we would be very happy! Thanks!
(Oh we use Code::Blocks mingw for the code.)
Re: Paying for physics integration (character controller).
Ah yeah - hills are always tricky with pure physics solution. Usually you will do that different - make physics settings in a way you can walk everywhere - and then define walkable areas in an editor.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Paying for physics integration (character controller).
Hmm, my thought atm is to make it so that I raycast in the direction the player is moving to get the height and then change the y coordinate accordingly...CuteAlien wrote:Ah yeah - hills are always tricky with pure physics solution. Usually you will do that different - make physics settings in a way you can walk everywhere - and then define walkable areas in an editor.
Re: Paying for physics integration (character controller).
Bascially that's it, although people also often use box or sphere collisions (spheres are nicer at stairs). But depends on what kind of physics you use if that works. If you have for example a physic which has gravity you might slide down hills - which is depending on the game exaclty what you want or something you don't want at all.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Paying for physics integration (character controller).
No idea of irrbullet, but I recall the kinematic character controller could handle stairs fine. Is a hill not just smooth stairs?
Re: Paying for physics integration (character controller).
I don't know that character controller, so no idea how it is working.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Paying for physics integration (character controller).
You could use a sphere with IMMENSE friction or basically make a VIRTUAL mech with two legs and a balancing weight which your software adds forces onto to balance the mech
Re: Paying for physics integration (character controller).
For hill climbing i do a raycast on the ground (with Newton, anyway...) to get the normal of the ground, and then, i perform a dot product with a vertical vector aiming to the positive Y axis (both normalized). The result of this is basically the cosine of the slope of the ground, meaning that 1 is a totally flat surface and 0 a wall. If the cosine is under a certain value (0.707 is the cosine of 45 degrees, and 0.5 is the cosine of 60 degrees of slope) you can stop walking, or start sliding down to a stable surface, with the stairs, on the other hand, there are more tricks, for instance,calculate if the surface of the next stair is high enough doing a raycast on the feet of the character, a, towards the moving direction, and check of there is a collision, if there isn't, it is safe to keep advancing. Then, you can perform another raycast to the ground to find the height, and place your character there. I don't know if it will work, but it is just a rough idea
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Re: Paying for physics integration (character controller).
Hmm, I was thinking along the same lines tbh, However I figured that one could add a invisible plane over the stairs so that it's techincally a ramp, don't think ppl would notice a THAT big difference if you do it nicely (however it would be a bit of cheating lol but w/e).Mel wrote:For hill climbing i do a raycast on the ground (with Newton, anyway...) to get the normal of the ground, and then, i perform a dot product with a vertical vector aiming to the positive Y axis (both normalized). The result of this is basically the cosine of the slope of the ground, meaning that 1 is a totally flat surface and 0 a wall. If the cosine is under a certain value (0.707 is the cosine of 45 degrees, and 0.5 is the cosine of 60 degrees of slope) you can stop walking, or start sliding down to a stable surface, with the stairs, on the other hand, there are more tricks, for instance,calculate if the surface of the next stair is high enough doing a raycast on the feet of the character, a, towards the moving direction, and check of there is a collision, if there isn't, it is safe to keep advancing. Then, you can perform another raycast to the ground to find the height, and place your character there. I don't know if it will work, but it is just a rough idea
Re: Paying for physics integration (character controller).
I don't think that is really a good solution, because every single thing that pops up a bit should have a plane near it and it would be a pain in the a** for mappers. Also imagine small rock like thing or just small box is on the ground, you would have to make planes from all directions for it.Justei wrote:Hmm, I was thinking along the same lines tbh, However I figured that one could add a invisible plane over the stairs so that it's techincally a ramp, don't think ppl would notice a THAT big difference if you do it nicely (however it would be a bit of cheating lol but w/e).Mel wrote:For hill climbing i do a raycast on the ground (with Newton, anyway...) to get the normal of the ground, and then, i perform a dot product with a vertical vector aiming to the positive Y axis (both normalized). The result of this is basically the cosine of the slope of the ground, meaning that 1 is a totally flat surface and 0 a wall. If the cosine is under a certain value (0.707 is the cosine of 45 degrees, and 0.5 is the cosine of 60 degrees of slope) you can stop walking, or start sliding down to a stable surface, with the stairs, on the other hand, there are more tricks, for instance,calculate if the surface of the next stair is high enough doing a raycast on the feet of the character, a, towards the moving direction, and check of there is a collision, if there isn't, it is safe to keep advancing. Then, you can perform another raycast to the ground to find the height, and place your character there. I don't know if it will work, but it is just a rough idea
I'd stick with the ray cast solution.
Working on game: Marrbles (Currently stopped).
Re: Paying for physics integration (character controller).
Nono I didn't mean like that, I meant JUST for stairs, I would still use raycasting, was mostly thinking since stairs are like small walls as well it could be a problem.serengeor wrote:I don't think that is really a good solution, because every single thing that pops up a bit should have a plane near it and it would be a pain in the a** for mappers. Also imagine small rock like thing or just small box is on the ground, you would have to make planes from all directions for it.Justei wrote:Hmm, I was thinking along the same lines tbh, However I figured that one could add a invisible plane over the stairs so that it's techincally a ramp, don't think ppl would notice a THAT big difference if you do it nicely (however it would be a bit of cheating lol but w/e).Mel wrote:For hill climbing i do a raycast on the ground (with Newton, anyway...) to get the normal of the ground, and then, i perform a dot product with a vertical vector aiming to the positive Y axis (both normalized). The result of this is basically the cosine of the slope of the ground, meaning that 1 is a totally flat surface and 0 a wall. If the cosine is under a certain value (0.707 is the cosine of 45 degrees, and 0.5 is the cosine of 60 degrees of slope) you can stop walking, or start sliding down to a stable surface, with the stairs, on the other hand, there are more tricks, for instance,calculate if the surface of the next stair is high enough doing a raycast on the feet of the character, a, towards the moving direction, and check of there is a collision, if there isn't, it is safe to keep advancing. Then, you can perform another raycast to the ground to find the height, and place your character there. I don't know if it will work, but it is just a rough idea
I'd stick with the ray cast solution.
Re: Paying for physics integration (character controller).
Justei already knows and uses this, but just for the record:
I recently added the kinematic character controller to irrBullet.
It's only available from the SVN currently.
I recently added the kinematic character controller to irrBullet.
It's only available from the SVN currently.
-
- Posts: 21
- Joined: Thu Dec 22, 2011 11:16 am
- Location: Germany - NRW
Re: Paying for physics integration (character controller).
Hi,
pls look at my thread:
I want to help you! ( Programm in a team ) - http://irrlicht.sourceforge.net/forum/v ... =1&t=45482
There I´m offering ( for nothing but the experience to be in a team and to programm with you ) my help.
I´m using PhysX ( Nvidias Physic engine ) for my game.
But, pls look at these, there are more information about it.
( And here is another thread by me , included video of my ( very alpha state ) game - which displayed a Irrlicht - shadow errors !)
http://irrlicht.sourceforge.net/forum/v ... =4&t=45492
I´m really looking forward to hear from you.
Best regards,
Christoph
pls look at my thread:
I want to help you! ( Programm in a team ) - http://irrlicht.sourceforge.net/forum/v ... =1&t=45482
There I´m offering ( for nothing but the experience to be in a team and to programm with you ) my help.
I´m using PhysX ( Nvidias Physic engine ) for my game.
But, pls look at these, there are more information about it.
( And here is another thread by me , included video of my ( very alpha state ) game - which displayed a Irrlicht - shadow errors !)
http://irrlicht.sourceforge.net/forum/v ... =4&t=45492
I´m really looking forward to hear from you.
Best regards,
Christoph
I´m from germany ^^ So, if you find some errors , you can keep it!
Re: Paying for physics integration (character controller).
i believe I did your video playing...
I think I could play around with bullet to get your character controller done... but can I get a small cut out of your project with bullet already set up so I didn't have to try to compile your ENTIRE game on linux?
I think I could play around with bullet to get your character controller done... but can I get a small cut out of your project with bullet already set up so I didn't have to try to compile your ENTIRE game on linux?
-
- Posts: 21
- Joined: Thu Dec 22, 2011 11:16 am
- Location: Germany - NRW
Re: Paying for physics integration (character controller).
Hi devsh,
I dont know if you are talking to me, but I dont need help by coding a character controller ... and I´m using PhysX.
I think you arent talked to me, are you?
I dont know if you are talking to me, but I dont need help by coding a character controller ... and I´m using PhysX.
I think you arent talked to me, are you?
I´m from germany ^^ So, if you find some errors , you can keep it!