Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
collisions #141319
07/15/07 22:29
07/15/07 22:29
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
how to create a collision between two entities'??

ps:srry for the bad english =]

Re: collisions [Re: AttosRH] #141320
07/15/07 22:44
07/15/07 22:44
Joined: Apr 2005
Posts: 3,076
Germany, NRW
rvL_eXile Offline

3D Artist
rvL_eXile  Offline

3D Artist

Joined: Apr 2005
Posts: 3,076
Germany, NRW
Tkae this COde:

Code:

Action Entity_1
{
while(1)
{
c_move(me,vector(0,0,0),nullvector,glide);
wait(1);
}

}

Action Entity_2
{
while(1)
{
c_move(me,vector(0,0,0),nullvector,glide);
wait(1);
}

}



Hope this helps

cYa Sebastian


Tutorials:
[Blender]Terrain creation ENG/GER
[Blender]Low Poly Tree Modeling
[GIMP]Create a Texture for Terrains
CLICK HERE


Re: collisions [Re: rvL_eXile] #141321
07/15/07 23:18
07/15/07 23:18
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
yes that helps a lot but how to detect this collision??

something like:

if(collision between two entities)
{
do something
}

thanks and sorry for the bad english again =]

Re: collisions [Re: AttosRH] #141322
07/15/07 23:32
07/15/07 23:32
Joined: Apr 2005
Posts: 3,076
Germany, NRW
rvL_eXile Offline

3D Artist
rvL_eXile  Offline

3D Artist

Joined: Apr 2005
Posts: 3,076
Germany, NRW
ok... U can handle this with Events...

Example:

Code:

Function Your_Event
{
If(event_type==event_impact
{
//do something
}
}

Action Player
{
my.enable=impact=on;
my.event=Your_event;
}



Look into the Manual for more Informations about events!

cYa Sebastian


Tutorials:
[Blender]Terrain creation ENG/GER
[Blender]Low Poly Tree Modeling
[GIMP]Create a Texture for Terrains
CLICK HERE


Re: collisions [Re: rvL_eXile] #141323
07/15/07 23:47
07/15/07 23:47
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
thanks again =]


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