gama.old icon indicating copy to clipboard operation
gama.old copied to clipboard

Wander (move) inside a 3D bound

Open hqnghi88 opened this issue 8 years ago • 5 comments

Steps to reproduce

  1. Load a 3d object (.obj) as a geometry X

  2. Let an agent who have moving3d skill to do wander with bound: geometry(X)

Expected behavior

Tell us what should happen (include all relevant expectations) Agent should move randomly inside that bounded 3D shape.

Actual behavior

Tell us what happens instead (include relevant information, like logs, snapshots, etc.) Not working.

System and version

Which version of GAMA, JDK, OS ... (if necessary, copy Help>Installation Details>Configuration in GAMA) Gama git.

hqnghi88 avatar Jun 26 '17 02:06 hqnghi88

Is the agent moving in a 2D plan or not moving at all?

agrignard avatar Jun 26 '17 09:06 agrignard

The agents are moving , may be the bound are taken in 2D but not 3D. You can found in the screen: in initial, agent are in the green box, moving3dmodel_model_display_wanderingagent_size_1335x866_cycle_0_time_1498471805215 moving3dmodel_model_display_wanderingagent_size_1335x866_cycle_11209_time_1498471854518

but they break out when they wander. And i dont know how it will react with complex 3D geometry (from obj file).

hqnghi88 avatar Jun 26 '17 10:06 hqnghi88

I am sure it does not work. It was also an answer to an issue I raised some months ago with the inside operator. This applies for imported 3D or even regular 3D objects in GAMA. For example, I cannot detect if an agent is "completely" inside the (all the) bounds of a 3D object. This is probably a related issue. The algorithm only keeps the 2D footprint as bounds. You should check that your agents will "not" go outside the footprint of your 3D object.

sriramab avatar Jun 26 '17 10:06 sriramab

Subsumed by #2206

AlexisDrogoul avatar Jul 12 '17 07:07 AlexisDrogoul

Reopening this issue for the next round of development on GAMA 2.0

AlexisDrogoul avatar Feb 20 '22 03:02 AlexisDrogoul