Unity Asset Store — Top Unity Asset

Ant Simulator 3D: Insect Movement

Ant Simulator 3D (Unity Asset) — simulator of termite (insect), bug or ant movement with C# code.

Unity Asset Store | Download Button

Features of Ant Simulator 3D

  • Movement, rotation, jump;
  • Fully customizable: 3 Parts of Legs, 3 Speeds, Jump Force and more;
  • Easy to set up your own ant;
  • No Mecanim and legacy animation — only C# code;
  • Fast and stable physics simulation;
  • Support experimental inverse kinematics, IK;
  • Support Unity Free and Unity Pro;
  • Full source code included.


  • W, A, S, D — move;
  • Q, E — rotate;
  • Space — jump.


Getting Started with Ant Simulator 3D

Folders & Files in package by default:

  • Makaka Games.


If you have any issues with the first launch then just Reach Support with Invoice Number and Get Help.

If you read this tutorial from PDF, first check the latest docs online to get actual information.

  1. Create New Unity Project with Unity 2018.3.
  2. Download and import Ant Simulator 3D into Unity;
  3. Test in Unity Editor or Build.

How to set up your own ant & Prefab

If you use Unity 2018.3 and higher, then just change predefined prefab and save it as new prefab.

Hierarchy of Unity Prefab


It contains a script that controls the movement of an ant (LegsControl.cs) and the only RigidBody component of Ant.


The basis for all other parts. It contains pivot points for legs.

Leg Pivots

Leg Pivot contains all parts of a leg. The legs are rotating around Leg Pivots.



By default, the legs are the same. However, you can customize each leg individually. Inspector of the control script has separate fields for each part of each leg.


It is necessary to specify the number of legs for an ant. The default value is 6. But you can experiment with other values. We have not tested other cases.

Leg Part: Base, Middle, Final

It is necessary to clearly specify and configure every part of the leg. Specify each Transform for the corresponding field in inspector of the control script.

Ant Math 3D Legs Script — Unity Asset

Start Rotational Angle & Delta Rotational Angle

From what angle leg part starts moving and how many degrees the movement continues.



  • Start Rotational Angle = 15;
  • Delta Rotational Angle = 15.


  • Final Rotational Angle = 15 + 15 = 30.
Sphere for IK

At the end of the hierarchy of prefab, you need to place simple sphere Game Object.
So, the control script understands where each leg is located at any time.

Is Right?

Is it right leg?
Right leg = 1;
Left leg = 0.

Phase Shift & Phase Shift Delta

To simulate the movement of an ant, it is necessary that the opposing legs (relative to the body) were in the same phase of the movement.

Speed Movement

The speed of ant movement in the XOZ plane.

Speed Rotation

The speed of ant rotation around its local Y axis.

Speed Animation

Unified the speed of legs movement in any form of movement.

Jump Force

It determines how high the ant will jump up.

Seconds Between Jumping

After how many seconds the next jump is possible?

Inverse Kinematics (IK) — Experimental Mode

Is IK Enabled

If it is false, the ant is suitable for walking on a flat surface.
If it is true, the ant is suitable for walking on a surface with obstacles.

IK Factor

It determines how strongly ant reacts to obstacles, moving other related parts.


First of all, read the latest docs online.
If it didn’t help, get the support.


Check the current version of Unity Ant Simulator 3D on Asset Store.
The latest versions will be added as soon as possible.


  • Unity 2018.3 version.


  • Unity 2017.3.1 version.

Support for Unity Assets

I am Andrew Sirota, Founder at Makaka Games and full-time Publisher on Unity Asset Store. First of all, read the latest docs online. If it didn’t help, get the support.

Related Articles

Leave a Reply

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

Back to top button

Spelling error report

The following text will be sent to our editors: