Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, ChrstphFr), 875 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
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 Offline OP
Serious User
painkiller  Offline 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
F
flits Offline
User
flits  Offline
User
F

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 Offline OP
Serious User
painkiller  Offline 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 Offline
Expert
alibaba  Offline
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.

Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
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 Offline OP
Serious User
painkiller  Offline 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] #296450
10/31/09 21:07
10/31/09 21:07
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline OP
Serious User
painkiller  Offline OP
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
anyone?


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 Offline
Expert
xXxGuitar511  Offline
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 Offline OP
Serious User
painkiller  Offline 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 Offline
Expert
xXxGuitar511  Offline
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 Offline OP
Serious User
painkiller  Offline 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

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1