Search Unity

[RELEASED] Truss Physics for Unity3D. Soft-body simulation plugin.

Discussion in 'Assets and Asset Store' started by Heartbroken, Aug 22, 2015.

Thread Status:
Not open for further replies.
  1. Mr_Dss

    Mr_Dss

    Joined:
    Feb 3, 2016
    Posts:
    19
    Why do you just ignore me? I bought asset, ask red car demo source via email, PM, this thread, but you just can not give me a link? Seriously?
     
    devotid likes this.
  2. Tegleg

    Tegleg

    Joined:
    Jun 10, 2013
    Posts:
    79
    Thanks ASDev
    what do you mean 'edge'?
    "external node of the wheel connected to EDGE"
    ive tried a few times to get wheels working without success.

    also, are you using softbody tires, if so could i see how you set them up please?
    all i can get is kind of balloons whatever i try

    that Red Car source would be handy but doesnt seem like Heartbroken is willing to give it out
     
    alienorbit likes this.
  3. Kamikaze2020

    Kamikaze2020

    Joined:
    Mar 28, 2017
    Posts:
    2
    can you share this to me?
    oooslavooo@gmail.com
     
  4. Shadow-X6

    Shadow-X6

    Joined:
    Apr 29, 2016
    Posts:
    108
    Kamikaze2020 likes this.
  5. ASDev

    ASDev

    Joined:
    Dec 9, 2012
    Posts:
    48
    Truss constraint has 2 type of connections. To node, and to edge. Node - 1 point (node), edge - 2 nodes.
     
  6. NotGoodEnoughh

    NotGoodEnoughh

    Joined:
    Feb 1, 2018
    Posts:
    35
  7. NotGoodEnoughh

    NotGoodEnoughh

    Joined:
    Feb 1, 2018
    Posts:
    35
    Hi all, recently TmSonicX(I'm not wrong with the name?) sent me a generated demo of RedCar. And I fixed the bugs, moved it to a new, 1.0.4, version of Truss Physics. But not everything is so perfect, maybe only me, but when you exit the runtime - Unity is crash. I don't know what the problem is. The project was rebuilt on Unity version 2018.2.2f1.

    Links (Archive is compressed):
    Dropbox - https://www.dropbox.com/s/to7bqgwy2miy7s3/RedCar-Rebuilded.rar?dl=0
    Yandex.Disk - https://yadi.sk/d/nHbtSMPT3aAcn9
    OneDrive - https://1drv.ms/u/s!AiJ-cwnOFv8oiFKfD56UJsXplNr4
    Mega - https://mega.nz/#!PjI0AAbT!kuZVmYcEPK3mAIgFsrJL3x64XfHebLGJtkhh5dMWAEY
     
  8. Shadow-X6

    Shadow-X6

    Joined:
    Apr 29, 2016
    Posts:
    108
    Enjoy This :) Thanks for Uploading i use Special Software for Generating Games only for Unity 3D :) Contact me for Generating other Games :)

    Facerougex@gmail.com
     
  9. Tegleg

    Tegleg

    Joined:
    Jun 10, 2013
    Posts:
    79
    none of those rar files will open.
    i couldnt get TmSonicX's version to work at all.
    every attempt at making my own from scratch is fraught with constant crashes.

    shame truss has been abandoned because its potential is massive
     
  10. NotGoodEnoughh

    NotGoodEnoughh

    Joined:
    Feb 1, 2018
    Posts:
    35
    What do you mean, tegleg?
     
  11. Tegleg

    Tegleg

    Joined:
    Jun 10, 2013
    Posts:
    79
    they all say
    "unable to open archive"
     
  12. ASDev

    ASDev

    Joined:
    Dec 9, 2012
    Posts:
    48
    Use this demo for understanding of Truss constraints and truss bodies. And use it knowlege in free version of truss physics, it's stable
     
  13. NotGoodEnoughh

    NotGoodEnoughh

    Joined:
    Feb 1, 2018
    Posts:
    35
    ASDev, i think that the problem of Unity crashing - is a RedCar script.
     
  14. NotGoodEnoughh

    NotGoodEnoughh

    Joined:
    Feb 1, 2018
    Posts:
    35
  15. Tegleg

    Tegleg

    Joined:
    Jun 10, 2013
    Posts:
    79
    that one opens thanks NotGoodEnough

    ASDev, i agree redcar is something to learn from, to pull apart and see how it works.

    EDIT:
    OnDestroy() in redcar script was causing a crash because it was looking for txworld but it did not exist.
    a quick fix is,
    change
    Code (CSharp):
    1. private void OnDestroy()
    2.     {
    3.             TxWorld.instance.onBeforeStep -= UpdateCar;
    4.     }
    to

    Code (CSharp):
    1. private void OnDestroy()
    2.     {
    3.         if (TxWorld.instance)
    4.         {
    5.             TxWorld.instance.onBeforeStep -= UpdateCar;
    6.         }
    7.        
    8.     }
     
    Last edited: Aug 17, 2018
    NotGoodEnoughh likes this.
  16. NotGoodEnoughh

    NotGoodEnoughh

    Joined:
    Feb 1, 2018
    Posts:
    35
    Tegleg, good job
     
  17. NotGoodEnoughh

    NotGoodEnoughh

    Joined:
    Feb 1, 2018
    Posts:
    35
    Guys, how do you like the idea to rewrite the runtime part on ECS?
     
  18. NotGoodEnoughh

    NotGoodEnoughh

    Joined:
    Feb 1, 2018
    Posts:
    35
    Who knows the easiest way to make Truss for models?
     
  19. ASDev

    ASDev

    Joined:
    Dec 9, 2012
    Posts:
    48
    There is no easy way. I create trusses manualy with nodes. edges and fases. It's take a lot of time. Maybe some 3D editors has plugins for creating meshes like trusses
     
  20. NotGoodEnoughh

    NotGoodEnoughh

    Joined:
    Feb 1, 2018
    Posts:
    35
    ASDev, What about modeling a Truss model using a primitive? For example, create a cube and make it the most simplified model shape? How's that for an option? I did it for the wheel, took the cylinder and customized for the model. It went well.
     
    devotid likes this.
  21. NotGoodEnoughh

    NotGoodEnoughh

    Joined:
    Feb 1, 2018
    Posts:
    35
  22. ASDev

    ASDev

    Joined:
    Dec 9, 2012
    Posts:
    48
    If you speak russian I can explain how I create truss bodies. My english is not very good )))
     
  23. NotGoodEnoughh

    NotGoodEnoughh

    Joined:
    Feb 1, 2018
    Posts:
    35
    ASDev, yes I know Russian language.
     
  24. Shadow-X6

    Shadow-X6

    Joined:
    Apr 29, 2016
    Posts:
    108
    Is Fixed :eek: Unity running still Nice :)
     
  25. Shadow-X6

    Shadow-X6

    Joined:
    Apr 29, 2016
    Posts:
    108
    I will be updating this RedCar, although the fix is not completely perfect as in the original, but perhaps it will work :)
     
  26. Tegleg

    Tegleg

    Joined:
    Jun 10, 2013
    Posts:
    79
    the fix i posted above only seems to work sometimes. i havnt delved into it any further.
    for my own tests i added this to Test002.cs at the end of Update()
    Code (CSharp):
    1. if (Input.GetKeyDown(KeyCode.X))
    2.         {
    3.             UnityEngine.Object.Destroy(carInstance.gameObject);
    4.         }
    so before i stop it i press X to destroy the car, then it does not crash unity.

    now i have something (redcar) to actually play around with truss physics its looking more and more like it could do with an overhaul to stop all those crashes and inconsistencies.
    i still have pretty much constant crashes every time i try to edit nodes on a truss model.
     
    Shadow-X6 likes this.
  27. Shadow-X6

    Shadow-X6

    Joined:
    Apr 29, 2016
    Posts:
    108
    Can you upload RedCar Project on my Gmail ? Facerougex@gmail.com
     
  28. NotGoodEnoughh

    NotGoodEnoughh

    Joined:
    Feb 1, 2018
    Posts:
    35
    What do you think, is it possible to somehow optimize the work with Truss Designer, for example, while editing Links, especially when a lot of Links, lags editor. I also noticed some crashes during copy-paste of TxConstraint components from one object to another.
     
  29. Tegleg

    Tegleg

    Joined:
    Jun 10, 2013
    Posts:
    79
    ive integrated into a large project ive had lying around since unity 5.3 so sorry i cant upload it.
    the truss part is NotGoodEnough's download with the fixes i posted.
    i get a lot of crashes editing truss.
    it can definitely be optimized and improved but the best person for that would be Heartbroken, he seems to have lost interest in truss unfortunately.
     
  30. NotGoodEnoughh

    NotGoodEnoughh

    Joined:
    Feb 1, 2018
    Posts:
    35
    Yes, but power is in the community! We were able to restore the RedCar Demo project, Yes with errors, but it works. Is it really more difficult to optimize this code?
     
  31. NotGoodEnoughh

    NotGoodEnoughh

    Joined:
    Feb 1, 2018
    Posts:
    35
    What about that problem on runtime start?
     

    Attached Files:

  32. Tegleg

    Tegleg

    Joined:
    Jun 10, 2013
    Posts:
    79
    i dont get those or any errors on runtime start. im using unity 2018.2.2f1

    the problem with the community trying to improve it, or even work with it properly, is there is little to no documentation and absolute zero comments in the code. its a massive undertaking going into something this complex totally blind.

    edit:
    the attached zip contains documentation for truss and redcar generated from doxygen.
    (open index.html)
     

    Attached Files:

    Last edited: Aug 22, 2018
    Fibonaccov likes this.
  33. Shadow-X6

    Shadow-X6

    Joined:
    Apr 29, 2016
    Posts:
    108
    Ok Thanks :)
     
  34. Tegleg

    Tegleg

    Joined:
    Jun 10, 2013
    Posts:
    79
    if i buy this asset do i get the source to the .dll's?
    now i can see how to actually use this asset thanks to TmSonicX, NotGoodEnough and whoever made RedCar Demo, as a programmer it would be very useful to see exactly what im dealing with.
    thanks
     
    NotGoodEnoughh likes this.
  35. NotGoodEnoughh

    NotGoodEnoughh

    Joined:
    Feb 1, 2018
    Posts:
    35
    You know, I don't see the point in paying if the project is dead, why wouldn't the developer just lay out the source code of the project so that the community could continue to keep the project up-to-date.
     
    Fibonaccov likes this.
  36. tads421

    tads421

    Joined:
    Aug 21, 2012
    Posts:
    3
    Good Evening all,

    i have downloaded the Red Car Demo from NotGoodEnough Thank you very much :) this was the only reason i did not buy the script in the end as this demo source was not given or even asking for it there was no mention of me getting it and the only reason to buy it was for damaging cars.....

    Now i have it loaded in 2017.3 but i can not drag the RedCar Prefab into any scene so i can edit the nodes, links or faces....

    How do i go about doing that?

    i drag it over the scene and i get the no entry sign... i try and drop it on the Hierarchy and it does not go in (does nothing)

    Thank you for your time

    TADS
     
  37. NotGoodEnoughh

    NotGoodEnoughh

    Joined:
    Feb 1, 2018
    Posts:
    35
    Try this link:
     
  38. tads421

    tads421

    Joined:
    Aug 21, 2012
    Posts:
    3
    Thank you for your reply NotGoodEnough but i said i did download it thank you for the link but i am unable to drag the prefab into the scene to edit the nodes etc....
     
  39. NotGoodEnoughh

    NotGoodEnoughh

    Joined:
    Feb 1, 2018
    Posts:
    35
    I understand that you downloaded and can't drag and drop prefab. I just thought maybe the archive was broken.
     
  40. Tegleg

    Tegleg

    Joined:
    Jun 10, 2013
    Posts:
    79
    i see what you are saying.
    there are a couple of problems with that though,
    i am making a commercial game with truss so i need the license,
    there is an advantage to having the source of the .dll's from a code standpoint, optimizing, fixing the editor bugs, and expanding truss.

    @tads421
    maybe try unity 2018?
     
  41. m0nsky

    m0nsky

    Joined:
    Dec 9, 2015
    Posts:
    257
  42. k-i-a

    k-i-a

    Joined:
    May 15, 2015
    Posts:
    17
    Hi,

    does anyone knows if Heartbroken is still following this thread?
    If not this is a pity, because this physics has an incredible potential.
    some step by step video tutorial (even without audio) within unity on how to create stuff would be enough to make people to understand.
     
  43. ASDev

    ASDev

    Joined:
    Dec 9, 2012
    Posts:
    48
    One more video with Truss Physics. Realistic tires

     
    Last edited: Nov 12, 2018
    Shadow-X6 likes this.
  44. Shadow-X6

    Shadow-X6

    Joined:
    Apr 29, 2016
    Posts:
    108
    Pls make tutorial this :)
    Thanks
     
  45. ASDev

    ASDev

    Joined:
    Dec 9, 2012
    Posts:
    48
    It's a little complicated and hard to explain and to uderstand. If you don't understand the idea of truss physics nodes, links and faces - I'm afraid I can't explain this. If you can create stable truss body and you don't know how to add wheels - I'll try to explain
     
  46. Shadow-X6

    Shadow-X6

    Joined:
    Apr 29, 2016
    Posts:
    108
    I use TrussPhysics but i do not know where is the error but it would be good some short videootutorial how to create nodes try but not see
     
  47. ASDev

    ASDev

    Joined:
    Dec 9, 2012
    Posts:
    48
    There are no errors. Download blank Truss Physics, not redcar demo from this topic. And try to setup truss body and wheels
     
    Last edited: Dec 11, 2018
  48. Shadow-X6

    Shadow-X6

    Joined:
    Apr 29, 2016
    Posts:
    108
    I don't know how :/ Help me
     
  49. ASDev

    ASDev

    Joined:
    Dec 9, 2012
    Posts:
    48
    Truss Physics has truss primitives in examples. You can use box primitive to create truss for car body
     
  50. Shadow-X6

    Shadow-X6

    Joined:
    Apr 29, 2016
    Posts:
    108
    That's what I did, but the deformation is wrong, it's not like RedCar's where the bug is
     
Thread Status:
Not open for further replies.