Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Add spring node gravity and simple collision #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

miabrahams
Copy link

Hi Miquel, I saw you were considering pulling the spring node gravity addition so I thought I might submit my simple collider as well. It's easy to use, just make a unit NURBS sphere, plug its translate into the collider position and the scale into the collider radius, and you can get fun results like in the forums.

Features for the spring node with negligible runtime cost.

Gravity adds a target bias in the -y direction.

Add support for two types of colliders: a ground plane and a list of spherical
colliders. The ground plane prevents the spring from crossing below y=0.

Spherical colliders repel the springs from a point in space. For a geometrical
representation, create a NURBS sphere, connect its world space position to the
input position, and its world space scale to the collider radius.

Collision can be given a softness value to create soft or hard collisions.
Zero softness prevents springs from crossing the barriers entirely.
@miquelcampos
Copy link
Member

@miabrahams thanks! I will check it ASAP

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants