Hello, In a post I helped in a few days ago, I made a Fabric Simulation to show how a cape would work.
It did not work that well, but to see that, you can click
Here is a video of the simulation:
It is not the best at all, but I think its cool.
Fabric.rbxl (34.2 KB)
There are 2 ways to run it, though the server (you can turn it to server by enabling the script in ServerScriptService), or though the client (you can turn it to server by enabling the script in StarterPlayerScripts). It is on the server as default.
The way I rendered the cape is though triangles, you can find that script here:
This file has been truncated.
# 3D Triangles
On occasion you may find it necessary to draw triangles given three points in 3D space. This article aims to go over one method that can be used to create those triangles using knowledge of trigonometry and coordinate frames.
## Table of contents
* [Triangle decomposition](#triangle-decomposition)
* [Manipulating the rotation matrix](#manipulating-the-rotation-matrix)
## Triangle decomposition
The first thing we need to be aware of is that Roblox does not have a singular default shape that can be used to create any 3D triangle. However, a shape that Roblox does have is right-angle triangles, otherwise known as wedges. Thus, we can decompose any triangle into a maximum of two right-angle triangles and draw from there. We can easily draw this process by placing a perpendicular line on the longest edge and having it intersect with the opposite vertex.
Now that we understand the basics of our goal we have to ask ourselves how we can achieve this mathematically. We'll start this process off by finding some information about the triangle depending on what side is the longest.
If you have any questions, post about it.
Have a good day
It looks really neat, love the way it interacts with itself and physics. Great job!
How did you make this?
I wanna make a cape
It might be something to do with skinned meshes
Looks good but the dimensions of the cloth is fighting with each other which is making it glitch a lot.
@Infinite_Visions, I started out as this being a Cape, you can check that out here:
And no, it does not have anything to do with skin meshes.
@HEROBRINE_771, this is because the so called “Nodes” or the blue things, are being held together by ropes, it may work better if I use spring.
For a bit more info about this, I made this to try and remake
@000Scripter Fabric simulation that I saw in this post: https://devforum.roblox.com/t/cloth-simulationengine-is-it-possible/1657509/ (The same post I made the Cape in)
Hope this helped