Hello, clothes models does it work on playcanvas? If yes, does anyone ever used that in a game? Tnx
Could you be a bit more specific about your question. Are you asking if you can import models with clothes - then sure, why not.
Or you are asking about cloth physics simulation? Then there is no implementation for such on engine level, but there are some solutions around and you always can some minimalistic your own one. And ammo.js does have soft bodies and stuff like that internally, you could go and āhack outā some cloth simulation using ammo.js.
Yes i guess my question was not well specified but itās coz iām not sure myself how to pose it, i mean that 3d programs has clothes support that allow you to use cloth models that take the shape of the character, and i guess i have to study the ammo.js coz i donāt know what it does My question was because i wondered if i could use the same model for an armor that can be used for both male and female.character.
Cloth Simulation - is the term you are looking for.
There is loads of docs around the web, including ammo.js examples of implementations.
Thanks a lot Max i will look for that
When instructing PlayCanvas to use Physics Simulation in a Scene, that causes it to include ammo.js in the build, correct? If true, does that include the latest version, which appears to include a few different soft-body dynamics features, including cloth sim?
It doesnāt bring in the latest, it uses PlayCanvas forked version.
Thereās a danger of adding too much to ammo.js and bloating the size as itās pretty big already.
It could be worth integrating one of the other Java script written physics libraries instead as I thi I some of them support soft bodies.
I tried doing cloth simulation with ammo.js But there are examples on only 2d plane simuated into cloth. I had imported a 3d model using three.js and I need to use it as cloth model how can I acheive that . I tried using createSoftVolume but they donāt really appear like cloth they appear to be like push balloons can you help me acheive cloth simulation with loaded objsā¦
Thanks