Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Ayumi), 1,353 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 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