The driver calculate bad values randomly when rigid body constraint (motor) attached #72042

Closed
opened 2019-11-29 11:15:10 +01:00 by Gabor Horvath · 4 comments

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
I built a construct with motor constraint and I would like to measure the turn angle with a driver.
I expected exact data but I got right data with randomly errors with 0.0 value.
2019-11-29 10-32-27.mp4

Exact steps for others to reproduce the error

  1. Add two cubes (origins 0,0,0 and 3,0,0) (cube1, cube2)
  2. Add rigid body feature for both
  3. Add rigid body constraints for both
  4. The cube2 rigid body is passive
  5. The cube2 rigid body constraints type is generic (linear limiters enabled with 0's) (Y,Z angular limiters enabled with 0's) the first objct is cube1, the second is cube2
  6. The cube1 rigid body constraints type is motor (angular enabled with def. values) the first objct is cube1, the second is cube2
  7. Add a custom property at cube1 properties pane. (limit range is -1000 .. +1000) (called prop)
  8. add a driver for prop (scripted, 'var' expression, one input variable: rotational difference between cub1 and cube2)
  9. Start the animation with space
    10 examine the driver values in drivers editor and got flashing 0.0 values (errors) between the right values.
**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** I built a construct with motor constraint and I would like to measure the turn angle with a driver. I expected exact data but I got right data with randomly errors with 0.0 value. [2019-11-29 10-32-27.mp4](https://archive.blender.org/developer/F8177795/2019-11-29_10-32-27.mp4) **Exact steps for others to reproduce the error** 1. Add two cubes (origins 0,0,0 and 3,0,0) (cube1, cube2) 2. Add rigid body feature for both 3. Add rigid body constraints for both 4. The cube2 rigid body is passive 5. The cube2 rigid body constraints type is generic (linear limiters enabled with 0's) (Y,Z angular limiters enabled with 0's) the first objct is cube1, the second is cube2 6. The cube1 rigid body constraints type is motor (angular enabled with def. values) the first objct is cube1, the second is cube2 7. Add a custom property at cube1 properties pane. (limit range is -1000 .. +1000) (called prop) 8. add a driver for prop (scripted, 'var' expression, one input variable: rotational difference between cub1 and cube2) 9. Start the animation with space 10 examine the driver values in drivers editor and got flashing 0.0 values (errors) between the right values.
Author

Added subscriber: @hgabor47

Added subscriber: @hgabor47
Gabor Horvath changed title from The driver are give bad values when rigid body constraint (motor) to The driver calculate bad values randomly when rigid body constraint (motor) attached 2019-11-29 11:16:33 +01:00
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Open' to: 'Archived'

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

Similar to #72107 (The parenting not working right with RigidBodyConstraints (motor)), if you use intermediate objects between the two rigid bodies as constraints (as this is done automatically when you use the Object > Rigid Body > Connect feature), it is fine actually:

#72042.blend

I'll dare to close both of these reports now, it is different from 2.79, but if used as suggested seems to work just fine...
(feel free though to comment again if issues persist...)

Similar to #72107 (The parenting not working right with RigidBodyConstraints (motor)), if you use intermediate objects between the two rigid bodies as constraints (as this is done automatically when you use the `Object` > `Rigid Body` > `Connect` feature), it is fine actually: [#72042.blend](https://archive.blender.org/developer/F8184879/T72042.blend) I'll dare to close both of these reports now, it is different from 2.79, but if used as suggested seems to work just fine... (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#72042
No description provided.