Skip Navigation
surlybaer surlybaer @lemmy.world
Posts 1
Comments 13
move_toward, rotation and radians
  • Took a walk and figured out my issue. I shouldn't have used direction.x in the increments argument. move_toward figures that out for you.

  • move_toward, rotation and radians

    So, I'm trying to rotate the player as they turn left and right in a top down view. The rotation works correctly when moving right, but fails going left.

    Here's the code that handles the rotation

    rotation = move_toward(rotation, PI / 12 * direction.x, PI / 2 * direction.x * delta)

    The numerical values look right, giving me 0.261 rads going right and -0.261 rads going left ... but the rotation going left continues to go clockwise and stops just before a full 180.

    Is there some quirk with rotation that I'm missing? My rubber ducks have remained silent.

    3
    Question about gdscript: Which is more efficient?
  • Speaking generally, I'd prefer the first option as long as 'i' is actually an index or other valid key. I'm not sure what the overhead is in godot, but in general you should avoid conditional statements when you have a direct access method like a key or index.

  • Dedicated NAS or Nextcloud server for home lab?
  • I'm running TrueNAS Scale and have nextcloud, pihole and jellyfin all running flawlessly as docker containers. They have a hardware compatibility list if you want to reduce/prevent flakeyness in your setup.

  • What law or rule exists because of you? What happened?
  • I got too comfortable at work and would walk around barefoot. The place was really clean. One morning a manager noticed and got weirded out. Next day there was a company wide announcement that shoes were required at all times.

  • Curb Your Enthusiasm and Crusader Kings III. Sounds good tbh, I'd watch that
  • What We Stardew in the Shadows. It's gonna get weird fast.

  • recomend a game system
  • If you want to add the meta of roleplaying the actors in the soap opera there's an old system called "It Came From the Late, Late, Late Show". It's a small booklet, around 20 pages if I recall.

    https://en.wikipedia.org/wiki/It_Came_From_the_Late,_Late,_Late_Show

  • Europe is doing so well regarding Linux smartphones
  • Does anyone know if Volla works with North American carriers? I'm already running graphene on a pixel, but ditching google completely would be great.

  • Opinions on federation with Meta's new threads?
  • Agreeing with the general sentiment. Anytime the big five 'engage' with the open source community they just use and abuse it. IMHO it would be in the best interest of the Fediverse to reject all partnership offers from the corps and make sure to defederate any instances they stand up.

  • Physical phone keyboards have been and always will be better than on screen keyboards
  • I definitely typed faster on my phones with physical keyboards. No need for autocorrect when tactile sensation tells you where your fingers are at. :)

  • What features would you want in a decentralized gaming platform similar to Steam?
  • Essential

    • DRM Free
    • Cloud Saves
    • Compatabilty info with current system.

    Nice to Have

    • Save migration, pulling save files from other game platforms for titles owned on both
    • Mod integration. Would be great to have this built in instead of having to go out to nexus
    • External links to official wiki's when applicable. The community guides are cool, but sometimes you just need that wiki.
  • Content
  • One person's repost is another person's first time. Don't let flamers get to ya.

  • [Game] Recommendation - Tunic
  • Phenominal game. I'm not saying you shouldn't save a buck, but this game is worth every penny at full price.

  • POLL - Will you stay on lemmy?
  • Absolutely. I've been hearing about the fediverse for several months now. This has just been an excellent reason to hop in.