Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Resolved Equation-based custom physics

Discussion in 'Physics' started by MessiasOF, Oct 28, 2020.

  1. MessiasOF

    MessiasOF

    Joined:
    May 4, 2017
    Posts:
    27
    Hi,
    Is it possible to write some custom physics in Unity based on formulas and equations? So I could simulate a little bit of real-world physics, and maybe even create my own equations to create custom physics in my project.

    Btw, I'm a student and I just wanted to know if Unity has any limitations on that, so I'm asking here first before trying to do something.
     
  2. AlTheSlacker

    AlTheSlacker

    Joined:
    Jun 12, 2017
    Posts:
    326
    Yes you can. The only real limitations are your knowledge and the available computational power. Just consider that the current system is one of approximation and compromise for good reasons, not least of which are stability and performance. It will be easier to write small, self-contained chunks of code that supplement the existing system, rather than trying to make fundamental changes to the existing system.

    I'd also suggest posting here for suggestions of how to make the standard system work for you before you try and re-write anything.
     
    MessiasOF likes this.
  3. MessiasOF

    MessiasOF

    Joined:
    May 4, 2017
    Posts:
    27
    Thank you very much!