Delta Time not used in Rigid Body Physics and strange behavior #110160

Open
opened 2023-07-16 06:45:24 +02:00 by Shmuel Israel · 1 comment

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2070 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 535.98

Blender Version
Broken: version: 4.0.0 Alpha, branch: main, commit date: 2023-07-02 22:31, hash: 7be0d1481c67
Worked: ?

Explanation
I was working in GN on some particle physics and wanted to see what gravity was actually supposed to look like, so I added a rigid body physics to another object. I saw that something wasn't adding up, so I tested further. I changed the frame rate and observed that the rigid body was getting faster and slower, depending on the frame rate, as well as exhibiting strange behavior (speeding up then slowing down).

Short description of error
rigid body physics exhibiting different behaviors depending on frame rate, as well as speeding up and slowing down (this might be a bake issue or the delta time only taking effect later 🤷‍♂️)

Exact steps for others to reproduce the error

  • set up a rigid body physics
  • see the speed of the gravity
  • change the frame rate
  • see that there is now a different gravity speed
  • (there may also me some strange behavior, that the speed gets faster then slower, this could also happen when switching frame rates back to what was normal before)

**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2070 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 535.98 **Blender Version** Broken: version: 4.0.0 Alpha, branch: main, commit date: 2023-07-02 22:31, hash: `7be0d1481c67` Worked: ? **Explanation** I was working in GN on some particle physics and wanted to see what gravity was actually supposed to look like, so I added a rigid body physics to another object. I saw that something wasn't adding up, so I tested further. I changed the frame rate and observed that the rigid body was getting faster and slower, depending on the frame rate, as well as exhibiting strange behavior (speeding up then slowing down). **Short description of error** rigid body physics exhibiting different behaviors depending on frame rate, as well as speeding up and slowing down (this might be a bake issue or the delta time only taking effect later 🤷‍♂️) **Exact steps for others to reproduce the error** - set up a rigid body physics - see the speed of the gravity - change the frame rate - see that there is now a different gravity speed - (there may also me some strange behavior, that the speed gets faster then slower, this could also happen when switching frame rates back to what was normal before) <video src="/attachments/a3513a54-1f94-41e9-a043-9a0cea3652e1" title="2023-07-16 00-22-27.mp4" controls></video>
Shmuel Israel added the
Type
Report
Status
Needs Triage
Priority
Normal
labels 2023-07-16 06:45:24 +02:00
Member

Hi @shmuel , the physics is reset if you go back to frame 0, then after changing the fps it should re-calculate everything based on the new setup.

Should probably reset the physics cache when frame rate is changed. Having a similar reset call like in #108004 could be a good way to go about it.

Hi @shmuel , the physics is reset if you go back to frame 0, then after changing the fps it should re-calculate everything based on the new setup. Should probably reset the physics cache when frame rate is changed. Having a similar reset call like in #108004 could be a good way to go about it.
YimingWu added
Module
Nodes & Physics
Status
Confirmed
Interest
Physics
and removed
Status
Needs Triage
labels 2023-07-16 10:18:55 +02:00
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#110160
No description provided.