Skip to content

Click anywhere on the screen and draw a shape using multiples left mouse button clicks, once done click on the right mouse button to generate the shape and enjoy the physics! (Be creative).

License

Notifications You must be signed in to change notification settings

oussamabonnor1/2DShapes_Drawing_Unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2DShapes_Drawing_Unity

GitHub license Jetlight studio

Screenshots and GIFs:

Project logic:

The use of vertices specified from the cursor's coordinates clicks to dynamically generate and configure a mesh, rigidbody2D, color, and 2D collider.

Project Overview

Requires Unity3D (tested with 2018.x, but should also work with 2017.x & 5.x)

.
├── _Materials
|   └── Line color.mat           - The color of the line drawn when displaying the current shape (before creation).
├── _Scenes
|   └── Main.unity               - The project's main scene
└── Scripts
    ├── GameManager.cs           - The main code of creation and interaction.
    └── Traingulator.cs          - Generates triangles from polygon vertecies.

Running the Project

To run the project, open _Scenes/Main.unity and click on the play button.

How to use it:

Click anywhere on the screen and draw a shape using multiples left mouse button clicks, once done click on the right mouse button to generate the shape and enjoy the physics! (Be creative).

Tools used:

  • Visual studio (IDE)
  • C# (logic)
  • Unity (game engine)

Contribution:

Feel free to fork this project and add whatever you like. If you have any suggestions or any comments please feel free to contact me or to open an issue, use free license art assets please.

Team:

Jetlighters having fun.

About

Click anywhere on the screen and draw a shape using multiples left mouse button clicks, once done click on the right mouse button to generate the shape and enjoy the physics! (Be creative).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages