Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice

Question Vector mechanics, and statics using physics

Discussion in 'Physics' started by unity_EA9959C33D2041DDF67D, Dec 7, 2023.

  1. unity_EA9959C33D2041DDF67D

    unity_EA9959C33D2041DDF67D

    Joined:
    Jun 19, 2021
    Posts:
    7
    Hello everyone, I want to create a simulator for vectorial and static physics where users can build truss links for bridges or frameworks in a three-dimensional style, similar to Poly Bridge. I understand that I should use joints, but they seem to be unstable for my purpose. Additionally, when creating complex structures, the performance is very poor. I would appreciate it if someone could provide guidance on where I should look or what direction I should take.
    upload_2023-12-7_11-28-12.png

    I know the math but I don't know how to implement it in Unity. Additionally, I would like to omit collisions, because I only need to calculate the loads (tension, compression, torsion) on each element. I imagine that will improve performance but I don't know how.
    I add that I want the simulation to be with many hundreds of elements so performance is very important.
    upload_2023-12-7_11-33-24.png
     
  2. arkano22

    arkano22

    Joined:
    Sep 20, 2012
    Posts:
    1,913
    You can treat the beams as simple springs, connecting nodes with some mass. This omits any collision detection/resolution and is easily parallelizable using Jobs/Burst.