This repository was archived by the owner on Oct 7, 2021. It is now read-only.
Add spring node gravity and simple collision#14
Open
miabrahams wants to merge 1 commit intomgear-dev:masterfrom
Open
Add spring node gravity and simple collision#14miabrahams wants to merge 1 commit intomgear-dev:masterfrom
miabrahams wants to merge 1 commit intomgear-dev:masterfrom
Conversation
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.
Member
|
@miabrahams thanks! I will check it ASAP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.