logo

[J]eepresesCreepers

Gallery details

Code Creates Random Creeper Agents moving around in 2d & 3d. Their proximity is indexes by links between creepers. We will continue building off of this class – C# 

—Quick Study building off of Creepers example. Here we have creepers moving randomly in 2d & 3d. When they each the boundary they turn around and go the opposite direction. I wanted to diagram their proximity as a visual cue for the later studies. The link connects any creepers that are within a threshold of each other. We will use this value to trigger interaction between them. Performance of the component is very quick, we are using the timer to run the component live without a number of iterations.—

Using Grasshopper C# components for the code snippets below – All Test code is provided on an ‘as-is’ basis for evaluation, testing and commenting purposes. I am not responsible for any damage incurred by its usage. Use at your own risk.

Base Creeper Agent Class - C# Code

[snippet slug=jeeperesescreepers lang=csharp]

 

 

  • Share

Leave a reply

Your email address will not be published. Required fields are marked *