@threlte/rapier 3.0.0-next.7 → 3.0.0-next.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,7 +47,7 @@ export const createRapierContext = (worldArgs, options) => {
47
47
  };
48
48
  const framerate = currentWritable(options.framerate ?? 'varying');
49
49
  const simulationOffset = currentWritable(1);
50
- const updateRigidBodySimulationData = currentWritable(false);
50
+ const updateRigidBodySimulationData = currentWritable(framerate.current === 'varying');
51
51
  const { simulationStage, synchronizationStage } = createPhysicsStages(framerate, simulationOffset, updateRigidBodySimulationData, options);
52
52
  const autostart = options.autoStart ?? true;
53
53
  const paused = writable(!autostart);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threlte/rapier",
3
- "version": "3.0.0-next.7",
3
+ "version": "3.0.0-next.8",
4
4
  "author": "Grischa Erbe <hello@legrisch.com> (https://legrisch.com)",
5
5
  "license": "MIT",
6
6
  "description": "Components and hooks to use the Rapier physics engine in Threlte",