Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Question about physic engine #293856
10/14/09 12:05
10/14/09 12:05
Joined: Dec 2008
Posts: 14
D
DarkSoul Offline OP
Newbie
DarkSoul  Offline OP
Newbie
D

Joined: Dec 2008
Posts: 14
Hello, in my videogame I'm using the physic engine of 3DGS. All is perfect, but when I move the character, sometimes falls from his mouth, is there any way to keep the character it stable?
Thanks!

Re: Question about physic engine [Re: DarkSoul] #293858
10/14/09 12:49
10/14/09 12:49
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
You have two solutions:
Use Newton.
Buy PhysX wrapper.

Re: Question about physic engine [Re: Cowabanga] #293860
10/14/09 13:01
10/14/09 13:01
Joined: Dec 2008
Posts: 14
D
DarkSoul Offline OP
Newbie
DarkSoul  Offline OP
Newbie
D

Joined: Dec 2008
Posts: 14
Can not I fix it with physic engine of 3DGS or other command of 3DGS?. Where do I get the wrapper to Newton physic?

Re: Question about physic engine [Re: DarkSoul] #293863
10/14/09 13:17
10/14/09 13:17
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...

Re: Question about physic engine [Re: DarkSoul] #293864
10/14/09 13:21
10/14/09 13:21
Joined: Aug 2009
Posts: 46
Deggendorf, Bayern
Fisch Offline
Newbie
Fisch  Offline
Newbie

Joined: Aug 2009
Posts: 46
Deggendorf, Bayern
What do you want to do exactly?
Try to disable physics for playerentity, move it and enable it again.
For basic gravity you can use the following:
Quote:

VECTOR* pl_dist;
pl_dist.x = (key_w - key_s)*time_step;
// Make a tracedown:
pl_dist.z = c_trace(player.x, vector(player.x, player.y, player.z - 4000), IGNORE_ME | IGNORE_PASSABLE);
c_move(player, pl_dist.x, nullvector, GLIDE);

I would prefer this.


The Internet is full of answers, even to never asked questions! laugh
Re: Question about physic engine [Re: Fisch] #294047
10/15/09 20:00
10/15/09 20:00
Joined: Dec 2008
Posts: 14
D
DarkSoul Offline OP
Newbie
DarkSoul  Offline OP
Newbie
D

Joined: Dec 2008
Posts: 14
But for example, the c_move command does not working, the character does not move, only moves once but again return to the previous position.
I'll try with newton physic.
Thanks for your help!

Re: Question about physic engine [Re: DarkSoul] #294050
10/15/09 20:51
10/15/09 20:51
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
You need to wait a frame after disabling the physics and moving the Entity with c_move before you can enable the physics again.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Question about physic engine [Re: WretchedSid] #294166
10/16/09 18:34
10/16/09 18:34
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
secondly, you dont move physics entities with c_move, you apply forces, check the manual about phent_addforcelocal [or whatever it is] and yes you can fix it, the 3dgs physics engines isnt as unstable as the users here make it seem

Last edited by darkinferno; 10/16/09 18:34.
Re: Question about physic engine [Re: darkinferno] #294511
10/19/09 16:06
10/19/09 16:06
Joined: Dec 2008
Posts: 14
D
DarkSoul Offline OP
Newbie
DarkSoul  Offline OP
Newbie
D

Joined: Dec 2008
Posts: 14
I know that the entities are moved by applying a force, but it seems 3DGS physics is limited. I'm testing the physics of Newton.
Thanks for your comment!

Re: Question about physic engine [Re: DarkSoul] #296010
10/29/09 04:28
10/29/09 04:28
Joined: Dec 2008
Posts: 14
D
DarkSoul Offline OP
Newbie
DarkSoul  Offline OP
Newbie
D

Joined: Dec 2008
Posts: 14
Hi!, I return to physic of 3DGS, the Newton Physics is very complicated for I want to do.
When creating the physic with physic engine of 3DGS, have a cube invisible that limited my area of interaction, this can be removed??
And other question... I return to the first questions.
My character falls forward when walking, he falls from mouth!, can this be prevented?, my character can remain always standing?. I'm confused :S
Thanks

Last edited by DarkSoul; 10/29/09 16:05.

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