Unity-Fake Mesh Cutter For 2D Object
The blog was originally created by Neha Gandhi.
- Main objective of this tutorial is to explain how to cut an object and how fake mesh cutter works.
- Given example will cut a wood stick from all the points where bombs are placed.
- You need to follow simple steps for object being cutted.
- For a detail information and video go to Fake Mesh Cutter For 2D Object
Unity – Draw Line on mouse move and detect line collision in Unity 2D and Unity 3D
Swati Patel has share her knowledge about detecting line collision In unity 2D and 3D.
- In unity, Line Renderer component gives the facility to draw a line.
- A line renderer component draws a straight line between points. It takes array of points as vector3 and draws a single straight line between points in array in sequential order. Thus, a single line renderer component can be used to draw anything from simple straight line to any complex shape. If we want to draw separate line or shape, we have to take multiple Game Objects, each with its own line renderer component as line drawn by line renderer is always continuous
- Line Renderer has many properties and parameters
- To know more see Detect Line Collision in Unity 2D and Unity 3D.
Unity - Rotate object by 90 degree
Shweta kakkad has shared her knowledge about Rotating object by 90 degree.
- The main objective of this post is to understand how to rotate an object clockwise or anti clockwise in unity.
- Rotations are to be performed in steps so it will give animation effect
- To rotate object with clockwise or anti-clockwise in Unity you need a center of rotation and how much you want to rotate it. Counter clockwise and Anti-clockwise rotations are called as positive rotation and negative rotation respectively.
- Additionally code will check if after rotation, object is colliding with any other object. If it is, then it will rotate again until the state in which it is colliding with no other object.
- Check out more information at Rotate object by 90 degree.