Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 05:41
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AbrahamR, AndrewAMD), 1,278 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
collision in-between a frame? #12206
03/27/03 18:23
03/27/03 18:23
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
code:
             ^
|
|
|
|
e1-----------+--------------->
|
|
|
|
e2

if i have two entities which start movement at e1 and e2 and the next frame they are positioned at the end of the arrows, is there a collision triggered when they meet in-between a frame but don't touch each other at the beginning or end of the movement?

Re: collision in-between a frame? #12207
03/27/03 23:44
03/27/03 23:44
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
it could be possible thru vector-mathematics, but i dont know exactly how to do it(just a hint) [Roll Eyes]


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Re: collision in-between a frame? #12208
03/27/03 23:57
03/27/03 23:57
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
hi, i found this one but its in german: this


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Re: collision in-between a frame? #12209
03/28/03 00:54
03/28/03 00:54
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
thanks for the link it's a good summary of vector mathematics. but actually i only would like to know if ent_move detects such a collision?

Re: collision in-between a frame? #12210
03/28/03 04:54
03/28/03 04:54
Joined: Jun 2002
Posts: 248
NZ
mudhole Offline
Member
mudhole  Offline
Member

Joined: Jun 2002
Posts: 248
NZ
You can only move a single entity at a time. So, say you moved e1 from it's start position to its end position -> No Collision.

Then you move e2 from its start position to its end position -> No Collision.

You can either resolve this by slowing down the entities -> if they move slower the chance that the collision will be missed is reduced.

Or use vector maths to determine the collision point. Not really too difficult -> just the intersection of two lines.

Re: collision in-between a frame? #12211
03/28/03 05:02
03/28/03 05:02

A
Anonymous
Unregistered
Anonymous
Unregistered
A



quote:
Originally posted by mudhole:
Or use vector maths to determine the collision point. Not really too difficult -> just the intersection of two lines.

Line intersection won't help much. Better use extruded spheres. This may sound complicated, but is not. Gamasutra has an article on this in its archives.

Re: collision in-between a frame? #12212
03/28/03 05:10
03/28/03 05:10
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
now i understand... thanks for your explanation!

...
and if i do a trace and an entity passes this ray in-between a frame does it trigger an event then? does this trace ray stay there during all the entity movements until the next frame gets drawn?


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