-
Notifications
You must be signed in to change notification settings - Fork 2
11 ManagingAgentsAnimation
RoiArthurB edited this page Nov 25, 2024
·
1 revision
Link to the example model: LinkToUnity/Models/Code Examples/Manage Animation for Agents.gaml

The general principle is to modify from GAMA the parameters of an animator or sent triggers to it. It works both for geometries/agents (sent to Unity using add_geometries_to_send) and other player agents (player_unity_properties).
The triggering of an animation is done using the action "update_animation" of the Unity Linker.
ask unity_linker {
do update_animation(
players: unity_player as list, //list of players to send the information to
geometries: boy_agent, //list of geometries/agents to update the geometry to - these agents should have been sent to Unity using add_geometries_to_send
parameters: ["MoveSpeed":: 1.0], //list of parameters to send to trigger animation - key(string): name of the parameter, value: either a float, an integer or a boolean
triggers: []//list of triggers (string)
);
}- Installing Unity
- Unity Interfaces
- Running a VR Experience
- Debugging with VR Headset
- Grabbing objects
- Defining new interactions
- Sending/receiving a message
- Sending attribute values for agents/geometries
- Sending a dem from GAMA
- Managing Water
- Constraining movement of players
- Multi-player games
- Management of agents’ animation
- Complete game with Menus