Questions tagged [softbody]

The most advanced type of object in the Game Engine,Soft body is an object in computer graphics which is deformable (for example:Cloth)

The most advanced type of object in the Game Engine,Soft body is an object in computer graphics which is deformable (for example:Cloth)

Unlike in simulation of rigid bodies, the shape of soft bodies can change, meaning that the relative distance of two points on the object is not fixed. While the relative distances of points are not fixed, the body is expected to retain its shape to some degree (unlike a fluid). The scope of soft body dynamics is quite broad, including simulation of soft organic materials such as muscle, fat, hair and vegetation, as well as other deformable materials such as clothing and fabric. Generally, these methods only provide visually plausible emulations rather than accurate scientific/engineering simulations, though there is some crossover with scientific methods, particularly in the case of finite element simulations. Several physics engines currently provide software for soft-body simulation.

18 questions
6
votes
3 answers

Softbody in WebGL/Three.js?

Is there any way to integrate softbody physics with WebGL or threejs? Could I integrate for example PhysX engine somehow? I need to move a 3d rigid body within a 3d soft body and have the soft body deform in response. The soft body would ideally…
Andrew
  • 451
  • 1
  • 6
  • 13
5
votes
1 answer

Soft body engine in C++

I am attempting to make an elementary soft body engine in C++ using SDL2. It works by considering all the vertices of the soft body to be interconnected by springs of same length and rigidity (with the same spring constant k and length…
AvZ
  • 997
  • 3
  • 14
  • 25
3
votes
2 answers

Is there a way to make a soft body with Spritekit using SKSpriteNode and PhysicsBody parameters?

I have the following sprite that falls to the bottom of the screen: // The View self.physicsBody = [SKPhysicsBody bodyWithEdgeLoopFromRect:self.frame]; self.physicsWorld.contactDelegate = self; // The Sprite SKSpriteNode *cube = [[SKSpriteNode…
ultimal
  • 137
  • 8
2
votes
0 answers

Soft-body simulation of an UV ball with mass spring method does not work?(Opengl C++)

I am working on soft body simulation. I am trying to do it with OpenGL in c++. However, I have some problems and I could not find anything on the internet. I am using the mass-spring method. First, I did the simulation in 2d and it worked without a…
user
  • 21
  • 2
1
vote
1 answer

How do I make a softbody jello sphere with NVIDIA FleX in Unity3D?

I am currently using the NVIDIA FleX package in Unity3D to create soft-bodied, jelly objects. I'm using Unity for animation only, not game dev. What I am aiming to make is a transparent, jello sphere that retains its spherical shape with…
ags
  • 43
  • 6
1
vote
1 answer

Few Vertices of mesh gets stick to the origin when making a soft body (sphere) and translating in libgdx?

I am trying to make a soft body by making a sphere and taking all the meshParts from it and making a soft body from that sphere. and when I render it in libgdx I use a model of sphere so that the soft body is visible which translate as the soft…
Djoij
  • 11
  • 2
1
vote
2 answers

B-Spline for any number of control points

I am currently working on a soft body system using numeric spring physics and I have finally got that working. My issue is that everything is currently in straight lines. I am aiming to replicate something similar to the game "The floor is Jelly"…
1
vote
3 answers

How to create 2D physics blob similar to the "Sushi Cat Game" using javascript physics engine?

I am trying to create HTML5 game that similar to Sushi Cat game. I followed a similar tutorial from Emanuele Feronato's blog post and then came up with the structure like the picture A in this image, where the gray orbits are allowed to penetrate…
hamdirizal
  • 221
  • 1
  • 8
1
vote
1 answer

Shape-matching soft body dynamics - implementing formula

I am trying to implement soft body physics, based on this paper by Müller et al.. I'm not terribly bad at mathematics, but while implementing formula (7) I just can't figure out the semantics. It goes like this: A = \left( \sum_i m_i p_i q_i^T)…
waechtertroll
  • 607
  • 3
  • 17
0
votes
0 answers

How do I made physics spring joint with angular spring

I'm trying to make a 3D softbody using godot 4.0 engine. I want to make a spring joint that has angular spring, because I want the softbody to expand without having a structural spring inside the softbody. I uses hooke's law to make the linear…
PiCode
  • 1
0
votes
1 answer

Tracking the Mesh of Deformables (3D .obj files) in PyBullet Simulation (Python)

I am using PyBullet to simulate the behavior of deformable objects. The objects are loaded using PyBullets loadSoftBody() function. I load the deformable from a 3D .obj file where the vertex positions as well as the faces are defined (mesh). I tried…
jannik
  • 1
0
votes
0 answers

How to give a softbody a collision shape in Godot 4

I'm trying to give my softbody a collision shape so that it interacts with staticbodys. Basically i'm trying to drape a cloth over a randomized pattern of staticbodys (which are cubes), and currently the softbody is phasing through them. Thank you!
isaiah day
  • 55
  • 7
0
votes
0 answers

2d sofy body collision resolvation fails to resovle collision. Rust, bevy

The system works great and manages to resolve all types of collisions except for when when a non static object slides of the corner of a static object. When that happens the object just fall through the static floor and intertwines itself. In these…
Viktor
  • 1
  • 1
  • 1
0
votes
1 answer

How to synchronize data for OpenGL compute shader soft body simulation

I'm trying to make a soft body physics simulation, using OpenGL compute shaders. I'm using a spring/mass model, where objects are modeled as being made out of a mesh of particles, connected by springs (Wikipedia link with more details). My plan is…
0
votes
1 answer

How to make a softbody bouncier in Unity 2D?

I made a jelly softbody in Unity, and I've tried to make it bouncier (so that after an object lands on it, it bounces into the air higher than it does normally), but I can't seem to figure out how to do it. I've tried to alter every single aspect of…
1
2