[Unity] Script: I tried to move game objects by “Transform”.

Last time, I tried to move game objects by “Rigidbody“. (URL: http://blog-e.lab7sg.com/archives/84) This time, I tried basic ways to move game objects by “Transform“. [To specify the location to move in the flame] 1. position: Specify the position in a world space. 2. localPosition: Specify relative position from parent object (If it doesn’t have the parent, it’s same as ‘position’.) 3. Translate: Move to specified direction and distance. (Ref: https://docs.unity3d.com/ScriptReference/Transform.html)... Read more

[Unity] Script: I tried to move game objects by “Rigidbody”.

To move game object in Unity, there are some ways. The one is to use ‘Rigidbody’. And also exist some ways for the ‘Rigidbody’. This time, I tried following 4 ways. [To specify the location to move in the flame] 1. position: completely teleportation 2. MovePosition: moving almost instantaneously (possible to interpolate in the intermediate position) [Add power or velocity to the object] 3. velocity: change the velocity in that... Read more