apetavern / grubs

A worms-inspired artillery game for s&box with randomly generated levels.
MIT License
34 stars 7 forks source link

Geometry added with AddTexture is now centered #242

Closed Metapyziks closed 1 year ago

Metapyziks commented 1 year ago

Fixes #240 by offsetting the TextureSdf by half the size.

Alternatively, I can make it so that TextureSdf is always centered in facepunch.libsdf, if you think that should be the default behaviour. This would mean you'd need to tweak the terrain loading code.

ShadowBrian commented 1 year ago

I think this'll work fine! The fix seems obvious looking at this haha. Will merge :)

matekdev commented 1 year ago

thank you so much for the library plus all the extra support, really appreciate it @Metapyziks