Gamestudio Links
Zorro Links
Newest Posts
phantom() not defined in indicators.c
by jcl. 08/07/26 11:45
Pause button for evaluation shell?
by jcl. 08/07/26 11:43
Accepting new programming clients
by AndrewAMD. 08/06/26 21:25
Fun Arcade Car Physics (nfs style)
by Ezzett. 08/02/26 21:11
ZorroGPT
by TipmyPip. 07/31/26 22:56
Wolfram Mathematica with Zorro
by TipmyPip. 07/30/26 02:07
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 1,492 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19222 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Couldn't move the model after disabling physics #187464
03/07/08 15:59
03/07/08 15:59
Joined: Mar 2008
Posts: 16
E
eminent Offline OP
Newbie
eminent  Offline OP
Newbie
E

Joined: Mar 2008
Posts: 16
Hello guys,
I am new to 3D Game Studio, and I have some problems regarding the physics of the models. In my project, I added an action to my model, a car in this case. The actions disables and enables the physics on the model and preform car movement. However, I couldn't move the car after the physics is disabled.
The code snippet is shown below, hope it is clear.
#in the infinite loop
if(key_cuu == on)
{
phent_enable(me,0);
c_move(my,vector(speed,0,0),nullvector, glide);
phent_enable(me,1);
}

The c_move is not working after I disabled the physics. Do you guys have any solutions? Thanks in advance.

Re: Couldn't move the model after disabling physic [Re: eminent] #187465
03/08/08 13:29
03/08/08 13:29
Joined: Oct 2002
Posts: 799
Germany->Bavaria->Nuremberg
C
Christian__A Offline
User
Christian__A  Offline
User
C

Joined: Oct 2002
Posts: 799
Germany->Bavaria->Nuremberg
maybe you should wait one frame before using c_move?


MfG, Christian__A. Visit my Site: www.chris-a.de



Moderated by  HeelX, Spirit 

Gamestudio download | 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