You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
amyspark-ng
changed the title
> Would it be possible to implement a system where the gravity for body() components changes direction at runtime? (https://github.com/replit/kaboom/issues/575)
feat: make gravity scale a vector to change gravity direction at runtime
May 23, 2024
isGrounded() won't work if the gravity is negative #689 replit/kaboom#689
i don't know if this was fixed but might still be relevant
Also got me thinking on maybe creating a different function for body component called addForce, where it's like jump, but you can also set horizontal force applied?
isFalling(): boolean {returnthis.vel.dot(gravity)>0// Same direction as gravity},isJumping(): boolean {returnthis.vel.dot(gravity)<0// Opposite direction as gravity},
Was in the original kaboom issues tab, thought it was still relevant, so it might be a nice feature
Originally posted by @amyspark-ng in #39
The text was updated successfully, but these errors were encountered: