Unity3D.tips[2]: Intersection point between two lines in 2D

The code /// /// Gets the coordinates of the intersection point of two lines. /// /// A point on the first line. /// Another point on the first line. /// A point on the second line. /// Another point on the second line. /// Is set to false of there are no solution. true otherwise. …

Unity3D.tips[1]: Strategies to prevent the collision when a ball rolls from a planar surface to another

Method 1: mega box collider Use a single BoxCollider for all your planes. For example, if you have multiple aligned planes, remove their Collider component (Box, Mesh, whichever they have) and on only one of the planes, add a BoxCollider and adjust its center and size values in the component’s inspector to encapsulate all the …

Unity3D.tips[0]: Avoid naming your MonoBehaviour methods Main()

Try to avoid naming your MonoBehaviour methods Main(). These would be triggered between Awake() and Start(). This Main() method supports IEnumerator flavors as much as Awake() and alike! But as useful as it could be, I would not recommend to use it as there is no official documentation entry in the manual. And usually, you …

[Unity] Force text re-serialization crash : La solution

Lorsque vous avez un gros projet Unity entre vos mains et que vous décidez de forcer la sérialisation en texte (Project Settings > Editor > Asset Serialization > Mode: Force Text), il se peut que vous rencontriez un problème de mémoire insuffisante qui fait crasher Unity. Lors du processus de « re-serialisation », Unity charge tous vos …

En route vers Unity !

Tout récemment, j’ai acquis une licence de Unity Pro. Pour ceux qui ne connaissent pas, il s’agit d’une solution logicielle permettant de produire et diffuser rapidement et simplement du contenu interactif en 2D et 3D. De cette manière, je pourrai enfin vous faire partager des expériences ludiques grâce à une solution efficace et prometteuse. Comme …