Scripting with Cog
Give objects behavior with Otter's own scripting language.
Give objects behavior with Otter's own scripting language.
Make an object spin with a Cog script, and tune it from the Inspector.
Cog's syntax: values, variables, text, operators, if and loops, functions, errors, and classes.
The functions the engine calls on your script, and how scripts talk to each other.
self and other object handles: reading and moving objects, components, physics, finding and spawning objects.
Vec3, Vec2, Rotation and Color: making them, reading them back, and the arithmetic they do.