From 5dcdff5071db07072e66993a5464af2515ba269b Mon Sep 17 00:00:00 2001 From: Matthew Gretton Date: Tue, 11 Feb 2025 07:01:08 +1100 Subject: [PATCH] Fixed the incorrect WorldConfig argument to WorldStep (should be WorldStepConfig) --- src/physics.js | 2 +- types/physics.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/physics.js b/src/physics.js index 413f20a..e7b9a3a 100644 --- a/src/physics.js +++ b/src/physics.js @@ -353,7 +353,7 @@ let _accumulator = 0; * Steps a physics world to match fixedTimeStep. * Returns the average time spent in the step function. * - * @param {WorldConfig} data - Configuration for the world. + * @param {WorldStepConfig} data - Configuration for the world. * @returns {number} totalTime - Time spent processing the step function, in seconds. */ export function WorldStep (data) diff --git a/types/physics.d.ts b/types/physics.d.ts index 53d4fb1..f29423b 100644 --- a/types/physics.d.ts +++ b/types/physics.d.ts @@ -156,10 +156,10 @@ export function CreateWorld(data: WorldConfig): { * Steps a physics world to match fixedTimeStep. * Returns the average time spent in the step function. * - * @param {WorldConfig} data - Configuration for the world. + * @param {WorldStepConfig} data - Configuration for the world. * @returns {number} totalTime - Time spent processing the step function, in seconds. */ -export function WorldStep(data: WorldConfig): number; +export function WorldStep(data: WorldStepConfig): number; /** * @typedef {Object} ChainConfig * @property {b2WorldId} worldId - ID for the world.