0 registered members (),
1,459
guests, and 9
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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
Newbie
|
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: 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!
|
|
|
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
Expert
|
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
Serious User
|
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: DarkSoul]
#296010
10/29/09 04:28
10/29/09 04:28
|
Joined: Dec 2008
Posts: 14
DarkSoul
OP
Newbie
|
OP
Newbie
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.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|