Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,606 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how to movement? #222530
08/19/08 20:04
08/19/08 20:04
Joined: Aug 2008
Posts: 16
J
justgamefreak Offline OP
Newbie
justgamefreak  Offline OP
Newbie
J

Joined: Aug 2008
Posts: 16
hio, when i try to use movement codes "c_move" it doesnt work with physics it doesnt work (myplayer is guard model)

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)
    	{
    	ent_animate(myplayer, "walk", walk_percentage, ANM_CYCLE);
 walk_percentage += 3 * time_step; 
 c_move (my, vector(15*time_step, 0, 0), nullvector, GLIDE);
    
        }
        
        wait(1);
}

	
}


and if i try following codes, when i try move, my objects falls down, cant stay on foot;

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);
}



what kind of movement codes i need and physics works on human model?

Last edited by justgamefreak; 08/19/08 20:05.
Re: how to movement? [Re: justgamefreak] #222541
08/19/08 21:19
08/19/08 21:19
Joined: Aug 2008
Posts: 16
J
justgamefreak Offline OP
Newbie
justgamefreak  Offline OP
Newbie
J

Joined: Aug 2008
Posts: 16
sovled, just down friction.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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