2 registered members (Akow, tomaslolo),
1,536
guests, and 12
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Problem with Physics engine in Spaceship
#296367
10/31/09 12:08
10/31/09 12:08
|
Joined: Aug 2009
Posts: 1,438 Spain
painkiller
OP
Serious User
|
OP
Serious User
Joined: Aug 2009
Posts: 1,438
Spain
|
Hi, i'm creating a space shuttle simulator using the physics engine included with gamestudio. Here is the problem, when im going at a X speed, sometimes with much speed, others with small speeds, the ship suddenly stops and i can rotate or accelerate the ship, i've looked into my code but there isnīt anything what makes an error.
3D Gamestudio A8 Pro AMD FX 8350 4.00 Ghz 16GB RAM Gigabyte GeForce GTX 960 4GB
|
|
|
Re: Problem with Physics engine in Spaceship
[Re: painkiller]
#296373
10/31/09 12:42
10/31/09 12:42
|
Joined: Jul 2007
Posts: 959 nl
flits
User
|
User
Joined: Jul 2007
Posts: 959
nl
|
if you load a wmb you are limmited to the max of the world so every entity and block is added to the level boundreys
"empty"
|
|
|
Re: Problem with Physics engine in Spaceship
[Re: flits]
#296377
10/31/09 13:28
10/31/09 13:28
|
Joined: Aug 2009
Posts: 1,438 Spain
painkiller
OP
Serious User
|
OP
Serious User
Joined: Aug 2009
Posts: 1,438
Spain
|
No, I think this isn't the problem, because sometimes it happens in one place and sometimes in another
Last edited by painkiller; 10/31/09 13:32.
3D Gamestudio A8 Pro AMD FX 8350 4.00 Ghz 16GB RAM Gigabyte GeForce GTX 960 4GB
|
|
|
Re: Problem with Physics engine in Spaceship
[Re: painkiller]
#296380
10/31/09 13:46
10/31/09 13:46
|
Joined: May 2008
Posts: 2,113 NRW/Germany
alibaba
Expert
|
Expert
Joined: May 2008
Posts: 2,113
NRW/Germany
|
look into the manual, there is a limit of the speed of the physic engine.but you can change the limit.
EDIT: Ah found it. Here look into the maual :
phent_setmaxspeed
Last edited by alibaba; 10/31/09 13:47.
|
|
|
Re: Problem with Physics engine in Spaceship
[Re: alibaba]
#296387
10/31/09 14:57
10/31/09 14:57
|
Joined: Aug 2009
Posts: 1,438 Spain
painkiller
OP
Serious User
|
OP
Serious User
Joined: Aug 2009
Posts: 1,438
Spain
|
I think phent_setmaxspeed isn`t the problem, because sometimes happens at very high speeds and other times it happens at low speeds
3D Gamestudio A8 Pro AMD FX 8350 4.00 Ghz 16GB RAM Gigabyte GeForce GTX 960 4GB
|
|
|
Re: Problem with Physics engine in Spaceship
[Re: painkiller]
#297482
11/07/09 19:10
11/07/09 19:10
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
Physics requires the level to be inside of a sky block, a limit. I highly recommend you program your own physics for this, or you will have a very small galaxy
xXxGuitar511 - Programmer
|
|
|
Re: Problem with Physics engine in Spaceship
[Re: xXxGuitar511]
#297527
11/08/09 00:10
11/08/09 00:10
|
Joined: Aug 2009
Posts: 1,438 Spain
painkiller
OP
Serious User
|
OP
Serious User
Joined: Aug 2009
Posts: 1,438
Spain
|
it's a good idea, but programming physics my-self will be very difficult
3D Gamestudio A8 Pro AMD FX 8350 4.00 Ghz 16GB RAM Gigabyte GeForce GTX 960 4GB
|
|
|
Re: Problem with Physics engine in Spaceship
[Re: painkiller]
#298079
11/11/09 19:44
11/11/09 19:44
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
Not entirely. c_move() gives you information about the point of contact, so you can use that to control collisions. there are some simple algorithms you can find online using the velocity (distance moved between frames, point of impact, and surface normals) to add some pretty good "bounce" physics. Obviously you'll want to tone down the bouncing with some friction (multiple the new velocity by a smaller number).
Collisions are really the only benifit you're looking for in a physics engine, and you're going to run into a lot of problems with using physics in a large open space.
xXxGuitar511 - Programmer
|
|
|
Re: Problem with Physics engine in Spaceship
[Re: xXxGuitar511]
#298083
11/11/09 20:31
11/11/09 20:31
|
Joined: Aug 2009
Posts: 1,438 Spain
painkiller
OP
Serious User
|
OP
Serious User
Joined: Aug 2009
Posts: 1,438
Spain
|
I also use Phyisics engine because you can combine forces in different directions
3D Gamestudio A8 Pro AMD FX 8350 4.00 Ghz 16GB RAM Gigabyte GeForce GTX 960 4GB
|
|
|
|