Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (lijoyi2011), 1,042 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
model vs. model collision #270476
06/08/09 13:26
06/08/09 13:26
Joined: Feb 2007
Posts: 77
São Paulo, Brazil
AttosRH Offline OP
Junior Member
AttosRH  Offline OP
Junior Member

Joined: Feb 2007
Posts: 77
São Paulo, Brazil
whats the best collision method to use when 2 models collide?

I'm using the c_move instruction with GLIDE and it works fine when the model(player) collides with the walls but against another model it gets stuck. Can you guys help me please?

thanks in advance

Re: model vs. model collision [Re: AttosRH] #270477
06/08/09 13:33
06/08/09 13:33

M
mercuryus
Unregistered
mercuryus
Unregistered
M




Re: model vs. model collision [Re: ] #270479
06/08/09 13:35
06/08/09 13:35
Joined: Feb 2007
Posts: 77
São Paulo, Brazil
AttosRH Offline OP
Junior Member
AttosRH  Offline OP
Junior Member

Joined: Feb 2007
Posts: 77
São Paulo, Brazil
I'v tried reading this manual four or five times, but my english is terrible and I easily get lost =/

Re: model vs. model collision [Re: AttosRH] #270624
06/09/09 04:57
06/09/09 04:57
Joined: Oct 2006
Posts: 175
G
Gumby22don Offline
Member
Gumby22don  Offline
Member
G

Joined: Oct 2006
Posts: 175
you could try using USE_BOX as a flag in the c_move function - that way at least one will be a box shape, and you have better chances. two polygons colliding is a bad way to go.

Don
have a great day

Re: model vs. model collision [Re: Gumby22don] #270626
06/09/09 05:21
06/09/09 05:21
Joined: Apr 2009
Posts: 298
Southern Oceans
KiwiBoy Offline
Member
KiwiBoy  Offline
Member

Joined: Apr 2009
Posts: 298
Southern Oceans
Event_IMPACT or Event_ENTITY


Use the 'manual' Luke, the manual is your friend. 'Self reminder' smile

My WebPage
Re: model vs. model collision [Re: KiwiBoy] #270637
06/09/09 06:37
06/09/09 06:37
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
I guess none of those responses will make much sense to you, so here's the direct answer. When the other model is a moving actor, the best collision method is the default one, which uses bounding boxes. When the other model is an unmoving obstacle, open "Entity Properties" in WED, and mark its "Polygon" flag. Then the moving model can glide along it. Hope this helps.

Re: model vs. model collision [Re: Tobias] #270794
06/10/09 01:34
06/10/09 01:34
Joined: Feb 2007
Posts: 77
São Paulo, Brazil
AttosRH Offline OP
Junior Member
AttosRH  Offline OP
Junior Member

Joined: Feb 2007
Posts: 77
São Paulo, Brazil
so, should I use my.polygon = on; or something like this?('m not using WED 'cause this is Lite-C

Re: model vs. model collision [Re: AttosRH] #270825
06/10/09 07:50
06/10/09 07:50
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
In lite-C it's

set(my,POLYGON);

but only when the model does not move!


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

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