Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (howardR, 7th_zorro), 893 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
How can I avoid collisions? #60189
12/06/05 16:24
12/06/05 16:24
Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
XNASorcerer Offline OP
Expert
XNASorcerer  Offline OP
Expert

Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
Quote:

If physics entities intersect other models or blocks, the physics system will try to push these entities apart.



How can I prevent this? I need to make one physic entity to pass inside another entity that can be a physics entity or not.
Thanks.

Re: How can I avoid collisions? [Re: XNASorcerer] #60190
12/06/05 16:55
12/06/05 16:55
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
If your target model is not a physics entity
set it passable = on

Re: How can I avoid collisions? [Re: vlau] #60191
12/06/05 16:58
12/06/05 16:58
Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
XNASorcerer Offline OP
Expert
XNASorcerer  Offline OP
Expert

Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
First I am using a non physics entity for my target model and I already did that. But the only difference is that, with the passable flag = off, they collide, and with the passable flag = on, the physic entity pushs the non physics entity alway.

Re: How can I avoid collisions? [Re: XNASorcerer] #60192
12/06/05 17:09
12/06/05 17:09
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
I don't have this problem, my physics entity hit my non physics
target didn't push it away. What is your setting of the physics
entity? or try to adjust the value of entity.push

Re: How can I avoid collisions? [Re: vlau] #60193
12/06/05 17:36
12/06/05 17:36
Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
XNASorcerer Offline OP
Expert
XNASorcerer  Offline OP
Expert

Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
As you can see on this pic:



That didn't help. I tried several values with the push and nothing. And the second car has his passable flag on.

Re: How can I avoid collisions? [Re: XNASorcerer] #60194
12/06/05 18:05
12/06/05 18:05
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
Don't know why? I've tried with my physics entity several times
with different size of models, it passes them smoothly. May be I
post my physics entity setting below, see if it can help.

var GRAVITY[3] = 0,0,-386;

phent_settype(my, PH_RIGID, PH_BOX);
phent_setmass(my, 5, PH_BOX);
phent_setdamping(my, 50,50);
phent_setfriction(my,0);
phent_setelasticity(my, 0,100);
ph_setgravity(GRAVITY);

Re: How can I avoid collisions? [Re: vlau] #60195
12/06/05 18:32
12/06/05 18:32
Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
XNASorcerer Offline OP
Expert
XNASorcerer  Offline OP
Expert

Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
It didn't help, but thanks anyway.

Re: How can I avoid collisions? [Re: XNASorcerer] #60196
12/06/05 20:47
12/06/05 20:47
Joined: Apr 2005
Posts: 64
Italy - Rome
_
_Tommo_ Offline
Junior Member
_Tommo_  Offline
Junior Member
_

Joined: Apr 2005
Posts: 64
Italy - Rome
You could set the entities that must collide in the same group id with phent_setgroup, this way they should be capable to intersect.

Re: How can I avoid collisions? [Re: _Tommo_] #60197
12/06/05 22:01
12/06/05 22:01
Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
XNASorcerer Offline OP
Expert
XNASorcerer  Offline OP
Expert

Joined: Dec 2001
Posts: 2,172
Portugal - Brazil
_Tommo_,
This would only work if both entities were physics entities.

Re: How can I avoid collisions? [Re: XNASorcerer] #60198
12/07/05 06:49
12/07/05 06:49
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
it looks as if those wheels arent set to passable either, dunno if they are seperated models, but it was a good guess

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Page 1 of 3 1 2 3

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