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
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 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
Simple question #428149
08/19/13 02:12
08/19/13 02:12
Joined: Aug 2011
Posts: 42
F
fabiomartins Offline OP
Newbie
fabiomartins  Offline OP
Newbie
F

Joined: Aug 2011
Posts: 42
Hello folks!

Please
I need a little example, how to keep a model stopped in the ar, keeping Physics collisions and other models with normal physics (ex: balls rollings in the terrain...)

how to do it?

Re: Simple question [Re: fabiomartins] #428151
08/19/13 02:34
08/19/13 02:34
Joined: Aug 2011
Posts: 42
F
fabiomartins Offline OP
Newbie
fabiomartins  Offline OP
Newbie
F

Joined: Aug 2011
Posts: 42
estou usando este pedaço de código para tentar manter o modelo na mesma coordenada x.y.z ou seja mante-lo parado no (ar)
mas ao usar este código, o objeto fica tremendo o tempo todo smirk

if (object.z <= 50)
{
pXent_setposition(object, vector(0, 0, object.z+1));
wait(1);
}
if (object.y != 0)
{
pXent_setposition(object, vector(0, 0, 50));

}
if (object.x != 0)
{
pXent_setposition(object, vector(0, 0, 50));

}

Re: Simple question [Re: fabiomartins] #428152
08/19/13 02:35
08/19/13 02:35
Joined: Aug 2011
Posts: 42
F
fabiomartins Offline OP
Newbie
fabiomartins  Offline OP
Newbie
F

Joined: Aug 2011
Posts: 42
I am using this piece of code to try to keep the model in the same coordinate xyz ie keep it stationary in (air)
but using this code, the object is shaking all the time smirk

if (object.z <= 50)
{
pXent_setposition(object, vector(0, 0, object.z+1));
wait(1);
}
if (object.y != 0)
{
pXent_setposition(object, vector(0, 0, 50));

}
if (object.x != 0)
{
pXent_setposition(object, vector(0, 0, 50));

}

Re: Simple question [Re: fabiomartins] #428168
08/19/13 12:52
08/19/13 12:52
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
you can use pXent_settype(me, PH_STATIC, PH_BOX)
then the object won't move.
or you can use pXent_setbodyflags to define specialized behaviour for the entity


Visit my site: www.masterq32.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