Implementation for simplified spring constraint #39076

Closed
opened 2014-03-09 22:46:24 +01:00 by Markus Kasten · 11 comments

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.

spring.diff

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. [spring.diff](https://archive.blender.org/developer/F80468/spring.diff)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Sergej Reich was assigned by Markus Kasten 2014-03-09 22:46:24 +01:00
Author

Added subscriber: @MarkusKasten

Added subscriber: @MarkusKasten

Added subscriber: @Sergey

Added subscriber: @Sergey

Added subscriber: @LukasTonne

Added subscriber: @LukasTonne

@LukasTonne, you might also be interested in this?

@LukasTonne, 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.

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.

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

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

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

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

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

No news here since months… archiving for now, we can always reopen should the raised points be addressed.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#39076
No description provided.