Skip to content

Commit bb4eaab

Browse files
committed
feat(defs): Entity.AddVelocity param ignoreTimeScale
1 parent 9d61a25 commit bb4eaab

File tree

1 file changed

+11
-1
lines changed
  • packages/isaac-typescript-definitions/src/types/classes

1 file changed

+11
-1
lines changed

packages/isaac-typescript-definitions/src/types/classes/Entity.d.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,17 @@ declare global {
120120
slowColor: Color,
121121
) => void;
122122

123-
AddVelocity: (velocity: Vector) => void;
123+
/**
124+
* Adds velocity to the entity. This can be used to move them in a certain direction. (For
125+
* example, as a result of collision.)
126+
*
127+
* @param velocity
128+
* @param ignoreTimeScale Optional. If true, the time scale is treated as if it were 1.0,
129+
* ignoring effects that would otherwise slow down or speed up the entity
130+
* (like Stopwatch). Defaults to false.
131+
*/
132+
AddVelocity: (velocity: Vector, ignoreTimeScale: boolean) => void;
133+
124134
BloodExplode: () => void;
125135

126136
// `CanShutDoors` is deliberately not implemented here because it conflicts with

0 commit comments

Comments
 (0)