The parenting not working right with RigidBodyConstraints (motor) #72107

Closed
opened 2019-12-02 09:11:24 +01:00 by Gabor Horvath · 10 comments

{F8184671}System Information
Operating system: Windows-10-10.0.16299 64 Bits
Graphics card: GeForce GT 730M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 389.08

Blender Version
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-11-20 14:27, hash: 26bd5ebd42
Worked: (optional)

Short description of error
When I would like use rigid body constraints then I can't use the parenting child of nor ctrl+p
The fixed constraint works but the flickering is appear

Exact steps for others to reproduce the error
0. see the video (fastest way)

  1. create two cubes (pos 0,0,0 3,0,0)
  2. The cubes are rigid bodies and all have a rigid body constraint
  3. the first cube is passive
  4. the first cubes constraints type = generic and all limit enabled with 0.0 values except the X ROT limit disabed
  5. the second cubes constraints type is motor with angle enabled
  6. the constraints object1 = first object
  7. the constraints object2 = second object
  8. Create a third cube (6.0.0) (rigid body)
    9 Use this cube for parenting to cube2 (child of or ctrl+p) will not working

#72107.blend

{[F8184671](https://archive.blender.org/developer/F8184671/2019-12-02_08-48-41.mp4)}**System Information** Operating system: Windows-10-10.0.16299 64 Bits Graphics card: GeForce GT 730M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 389.08 **Blender Version** Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-11-20 14:27, hash: `26bd5ebd42` Worked: (optional) **Short description of error** When I would like use rigid body constraints then I can't use the parenting child of nor ctrl+p The fixed constraint works but the flickering is appear **Exact steps for others to reproduce the error** 0. see the video (fastest way) 1. create two cubes (pos 0,0,0 3,0,0) 2. The cubes are rigid bodies and all have a rigid body constraint 3. the first cube is passive 4. the first cubes constraints type = generic and all limit enabled with 0.0 values except the X ROT limit disabed 5. the second cubes constraints type is motor with angle enabled 6. the constraints object1 = first object 7. the constraints object2 = second object 8. Create a third cube (6.0.0) (rigid body) 9 Use this cube for parenting to cube2 (child of or ctrl+p) will not working [#72107.blend](https://archive.blender.org/developer/F8184810/T72107.blend)
Author

Added subscriber: @hgabor47

Added subscriber: @hgabor47
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Can confirm.
We are getting dependency cylces detected:

Dependency cycle detected:
  OBgeneric/Transform Component/RIGIDBODY_TRANSFORM_COPY() depends on
  OBgeneric/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint -> RBC.Object_1'
  OBgeneric/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final'
Dependency cycle detected:
  OBmotor/Transform Component/TRANSFORM_FINAL() depends on
  OBmotor/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final'
  OBgeneric/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint -> RBC.Object_2'
  OBgeneric/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final'
  OBmotor/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint -> RBC.Object_1'
Dependency cycle detected:
  OBgeneric/Transform Component/RIGIDBODY_TRANSFORM_COPY() depends on
  SCScene/Transform Component/RIGIDBODY_SIM() via 'Rigidbody Sim Eval -> RBO Sync'
  OBgeneric/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint Transform -> RB Simulation'
  OBgeneric/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final'
Detected 3 dependency cycles

This might have the same roots as {#58044}?

Can confirm. We are getting dependency cylces detected: ``` Dependency cycle detected: OBgeneric/Transform Component/RIGIDBODY_TRANSFORM_COPY() depends on OBgeneric/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint -> RBC.Object_1' OBgeneric/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final' Dependency cycle detected: OBmotor/Transform Component/TRANSFORM_FINAL() depends on OBmotor/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final' OBgeneric/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint -> RBC.Object_2' OBgeneric/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final' OBmotor/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint -> RBC.Object_1' Dependency cycle detected: OBgeneric/Transform Component/RIGIDBODY_TRANSFORM_COPY() depends on SCScene/Transform Component/RIGIDBODY_SIM() via 'Rigidbody Sim Eval -> RBO Sync' OBgeneric/Transform Component/TRANSFORM_FINAL() via 'RigidBodyConstraint Transform -> RB Simulation' OBgeneric/Transform Component/RIGIDBODY_TRANSFORM_COPY() via 'Rigidbody Sync -> Transform Final' Detected 3 dependency cycles ``` This might have the same roots as {#58044}?
Member

Even though this smeels like #58044 (Issue with rigid body and modifiers dependent on transform) I am keeping this open since there is nothing reported for the actually parented object....

Even though this smeels like #58044 (Issue with rigid body and modifiers dependent on transform) I am keeping this open since there is nothing reported for the actually parented object....
Member

Added subscriber: @Sergey

Added subscriber: @Sergey
Member

CC @Sergey

CC @Sergey
Member

Actually, if you use a separate object [empty] as the constraint between the two objects (as this is done automatically when you use the Object > Rigid Body > Connect), it is working fine...

T72107_corrected.blend

Actually, if you use a separate object [empty] as the constraint between the two objects (as this is done automatically when you use the `Object` > `Rigid Body` > `Connect`), it is working fine... [T72107_corrected.blend](https://archive.blender.org/developer/F8184838/T72107_corrected.blend)
Member

@Sergey: this was fine(ish) in 2.79 (but I assume with the quirks mentioned in #58044 (Issue with rigid body and modifiers dependent on transform)), so doing it with the intermediate object resolves...
Can we close this?

@Sergey: this was fine(ish) in 2.79 (but I assume with the quirks mentioned in #58044 (Issue with rigid body and modifiers dependent on transform)), so doing it with the intermediate object resolves... Can we close this?
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Philipp Oeser self-assigned this 2019-12-02 11:55:52 +01:00
Member

I'll dare to close both this report and #72042 reports now, it is different from 2.79, but if used as suggested seems to work just fine...
(@hgabor47 feel free though to comment again if issues persist...)

I'll dare to close both this report and #72042 reports now, it is different from 2.79, but if used as suggested seems to work just fine... (@hgabor47 feel free though to comment again if issues persist...)
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
2 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#72107
No description provided.