|
| code GML urgent | |
| | Auteur | Message |
---|
Darkasteine Très bonne participation
Messages : 124 Localisation : devant mon petit ordi de merde
| Sujet: code GML urgent Mer 16 Nov 2005 - 15:07 | |
| Salut a tous je voudrai savoir comment faire dire collision en GML merci de me repondre rapidement svp!!!! |
| | | daminetreg Administrateur
Messages : 16998 Localisation : Siege du CBNA! Projet Actuel : Site Web du CBNA, version beta :
| Sujet: Re: code GML urgent Mer 16 Nov 2005 - 15:19 | |
| - Citation :
- collision_point(x,y,obj,prec,notme) This function tests whether at point (x,y) there is a collision with entities of object obj.
collision_rectangle(x1,y1,x2,y2,obj,prec,notme) This function tests whether there is a collision between the (filled) rectangle with the indicated opposite corners and entities of object obj. For example, you can use this to test whether an area is free of obstacles. collision_circle(xc,yc,radius,obj,prec,notme) This function tests whether there is a collision between the (filled) circle centered at position (xc,yc) with the given radius and entities of object obj. For example, you can use this to test whether there is an object close to a particular location. collision_ellipse(x1,y1,x2,y2,obj,prec,notme) This function tests whether there is a collision between the (filled) ellipse with the indicated opposite corners and entities of object obj. collision_line(x1,y1,x2,y2,obj,prec,notme) This function tests whether there is a collision between the line segment from (x1,y1) to (x2,y2) and entities of object obj. This is a powerful function. You can e.g. use it to test whether an instance can see another instance by checking whether the line segment between them intersects a wall.
Suffit de chercher dans l'aide. De plus il y a un topic pour cela: https://cbna.forumactif.com/viewtopic.forum?t=733
Dernière édition par le Mer 16 Nov 2005 - 15:21, édité 1 fois |
| | | Levans Utilisateur confirmé: Rang *****
Messages : 1598 Localisation : France -> Île de France -> Essonne -> Gif sur Yvette
| Sujet: Re: code GML urgent Mer 16 Nov 2005 - 15:20 | |
| - daminetreg a écrit:
-
- Citation :
- collision_point(x,y,obj,prec,notme) This function tests whether at point (x,y) there is a collision with entities of object obj.
collision_rectangle(x1,y1,x2,y2,obj,prec,notme) This function tests whether there is a collision between the (filled) rectangle with the indicated opposite corners and entities of object obj. For example, you can use this to test whether an area is free of obstacles. collision_circle(xc,yc,radius,obj,prec,notme) This function tests whether there is a collision between the (filled) circle centered at position (xc,yc) with the given radius and entities of object obj. For example, you can use this to test whether there is an object close to a particular location. collision_ellipse(x1,y1,x2,y2,obj,prec,notme) This function tests whether there is a collision between the (filled) ellipse with the indicated opposite corners and entities of object obj. collision_line(x1,y1,x2,y2,obj,prec,notme) This function tests whether there is a collision between the line segment from (x1,y1) to (x2,y2) and entities of object obj. This is a powerful function. You can e.g. use it to test whether an instance can see another instance by checking whether the line segment between them intersects a wall.
Suffit de chercher dans l'aide. :p_gne: vachement précis! c'est aussi en bordel que ça dans l'aide? |
| | | daminetreg Administrateur
Messages : 16998 Localisation : Siege du CBNA! Projet Actuel : Site Web du CBNA, version beta :
| Sujet: Re: code GML urgent Mer 16 Nov 2005 - 15:22 | |
| J'ai mis en gras les fonctions, et oui c'est comme ça dans l'aide. |
| | | Contenu sponsorisé
| Sujet: Re: code GML urgent | |
| |
| | | | code GML urgent | |
|
Sujets similaires | |
|
| Permission de ce forum: | Vous ne pouvez pas répondre aux sujets dans ce forum
| |
| |
| |