Gamestudio Links
Zorro Links
Newest Posts
FXCM demo test failed
by qin. 01/13/26 13:53
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (bigsmack), 5,135 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 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