Dan_foodz
(Dan_foodz)
February 8, 2022, 2:45am
#1
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 .
Here is a video of the simulation:
It is not the best at all, but I think its cool.
File:
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:
# 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)
* [Optimization](#optimization)
## 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.

This file has been truncated. show original
If you have any questions, post about it. Have a good day
22 Likes
It looks really neat, love the way it interacts with itself and physics. Great job!
1 Like
How did you make this?
I wanna make a cape
It might be something to do with skinned meshes
1 Like
Looks good but the dimensions of the cloth is fighting with each other which is making it glitch a lot.
1 Like
Dan_foodz
(Dan_foodz)
February 8, 2022, 1:22pm
#5
@Infinite_Visions , I started out as this being a Cape, you can check that out here:
https://devforum.roblox.com/t/cloth-simulationengine-is-it-possible/1657509/14
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)
Video of @000Scripter Fabric:
Hope this helped
1 Like