Page MenuHome

Implementation for simplified spring constraint
Closed, ArchivedPublic

Description

A while ago, I implemented the generic spring and motor constraint, and planned to make a simpler spring constraint 'later'.
Since I found some time today and the generic spring is not very user-friendly, I wrote a patch for the implementation.
I created new functions in die RigidBody API which internally use the functions from the 6dof and 6dof spring constraint, since there is currently no simple spring constraint in bullet (to my knowledge). This should make using an native bullet simple spring constraint easier if bullet comes up with one in the future (I'd say a simple spring would give more performance).

The spring constraint locks all rotational axes and the linear X and Y axis, and uses the Z axis as the springs axis.

Details

Type
Patch

Event Timeline

Markus Kasten (markus-k) raised the priority of this task from to Needs Triage by Developer.
Markus Kasten (markus-k) updated the task description. (Show Details)
Markus Kasten (markus-k) set Type to Patch.
Sergey Sharybin (sergey) lowered the priority of this task from Needs Triage by Developer to Normal.Apr 11 2014, 9:00 AM

@Lukas Toenne (lukastoenne), you might also be interested in this?

Sorry for responding so late.
In general this is a good idea.
However, I have some reservations.
In hindsight we shouldn't have added the generic spring constraint either.
The main problem is that bullet's builtin springs don't behave very well and make it pretty much impossible to create stiff springs which is the main use case as far as I can see.
So I think we need a better spring implementation before adding it to the UI.

Just a heads up, upstream bullet has a new spring constraint that might work better if someone is interested in playing with it.

Sergey Sharybin (sergey) triaged this task as Needs Information from User priority.Feb 26 2015, 11:50 AM

So what's the status here? Does the new constraint from bullet work better?

No news here since months… archiving for now, we can always reopen should the raised points be addressed.