Home

Awesome

Cable physics

Real-time simulation of cable behaviors, such as:

<br>

Cable behavior demonstration video: youtube.com/Hrober/cables-physics

The whole system was used in-game named Errata.<br> Errata trailer: youtube.com/Errata/errata-trailer

Project structure

Cables scripts

Main cable script:<br> github.com/Hrober0/Cable-physics/Assets/PhysicCalbes/Scripts/PhysicCable.cs

Cable connector script:<br> github.com/Hrober0/Cable-physics/Assets/PhysicCalbes/Scripts/Scripts/Connector.cs

Interactions scripts

Scripts required to interact with cables:<br> github.com/Hrober0/Assets/Interactions<br> (Whose dependencies can be easily removed)

Sample player controller

Sample first-person player controller used to show sample of interaction with cables:<br> github.com/Hrober0/Assets/SamplePlayerController

Sample scene

Sample scene used to show sample of interaction with cables:<br> github.com/Hrober0/Assets/Scenes<br> Scene contains plyer, basic environment and some cables and connectors.

Used Technologies

Unity

C#

Used Packages

NaughtyAttributes

NaughtyAttributes is an extension for the Unity Inspector.<br> It expands the range of attributes that Unity provides so that you can create powerful inspectors without the need of custom editors or property drawers. It also provides attributes that can be applied to non-serialized fields or functions.<br> Link: https://github.com/dbrizov/NaughtyAttributes