Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 692 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 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 | 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