Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
0 registered members (), 635 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
model movement? #222490
08/19/08 17:04
08/19/08 17:04
Joined: Aug 2008
Posts: 16
J
justgamefreak Offline OP
Newbie
justgamefreak  Offline OP
Newbie
J

Joined: Aug 2008
Posts: 16
hi, i added a human model but what kind of move i will use it if i use theese codes, it falls down towards x,
btw, human model is PH_BOX right?

Code:
action myplayer()
{

myplayer = me;

    ph_setgravity (vector(0, 0, -386)); 
    phent_settype (myplayer, PH_RIGID, PH_BOX); 
    phent_setmass (myplayer, 3, PH_BOX); 
    phent_setfriction (myplayer, 80);
    phent_setdamping (myplayer, 40, 40); 


   
    while (1)
    {
    	if(key_w)
    	{

        myplayer_speed.x = 5 ;
        myplayer_speed.y = 0 ;
        myplayer_speed.z = 0; 
        phent_addvelcentral (myplayer, myplayer_speed); 
        }
        wait(1);
}


Re: model movement? [Re: justgamefreak] #222542
08/19/08 21:20
08/19/08 21:20
Joined: Aug 2008
Posts: 16
J
justgamefreak Offline OP
Newbie
justgamefreak  Offline OP
Newbie
J

Joined: Aug 2008
Posts: 16
solved, yes PH_BOX as type.

Re: model movement? [Re: justgamefreak] #222932
08/21/08 17:10
08/21/08 17:10
Joined: Dec 2006
Posts: 17
H
hallsofvallhalla Offline
Newbie
hallsofvallhalla  Offline
Newbie
H

Joined: Dec 2006
Posts: 17
how was this solved? I am having the same issue. My model just falls over and when I add speed to the x or y it just tumbles around.


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