stuck on trying to figure out how i wanna handle block rotations in block game π
-
stuck on trying to figure out how i wanna handle block rotations in block game π
-
stuck on trying to figure out how i wanna handle block rotations in block game π
@eniko Are we talking 90Β° rotations around primary axes or generic rotations?
-
stuck on trying to figure out how i wanna handle block rotations in block game π
@eniko@mastodon.gamedev.place
An animation showing the block turning would be cute if it's not difficult.
Assuming I understand the problem. -
@eniko Are we talking 90Β° rotations around primary axes or generic rotations?
@lisyarus 90 degree rotations
but also, maybe not all of them?
but maybe all of them
i don't know. that's part of the problem
-
@eniko@mastodon.gamedev.place
An animation showing the block turning would be cute if it's not difficult.
Assuming I understand the problem.@raccoon no, right corners only. like furnaces or observers in minecraft
-
@raccoon no, right corners only. like furnaces or observers in minecraft
@eniko@mastodon.gamedev.place
I don't understand -
stuck on trying to figure out how i wanna handle block rotations in block game π
maybe i will make a rotated block kind, and then add some bits to that to define the type of rotation, so that i can start simple and add more complex rotations later if i want and or need to
because not all rotations apply to all rotatable blocks. for example, a door only has east/west and north/south, whereas something like a minecraft furnace has east, west, north, and south facing, but not up or down
-
@lisyarus 90 degree rotations
but also, maybe not all of them?
but maybe all of them
i don't know. that's part of the problem
-
@eniko@mastodon.gamedev.place
I don't understand -
@fabiosantoscode @eniko @lisyarus
NodeCore has an extension that makes it very easy to control rotations, which I love
-
maybe i will make a rotated block kind, and then add some bits to that to define the type of rotation, so that i can start simple and add more complex rotations later if i want and or need to
because not all rotations apply to all rotatable blocks. for example, a door only has east/west and north/south, whereas something like a minecraft furnace has east, west, north, and south facing, but not up or down
ugh adding a new rotating block kind adds so many complications. i really like the generic vs complex block flow, but i don't want *every* rotating block to necessarily be a complex block either
i could allocate 3 bits of the block type for rotation/facing and i'd still have plenty of space left but it feels so wasteful when most blocks can't have a facing anyway >_<
-
undefined oblomov@sociale.network shared this topic on
-
ugh adding a new rotating block kind adds so many complications. i really like the generic vs complex block flow, but i don't want *every* rotating block to necessarily be a complex block either
i could allocate 3 bits of the block type for rotation/facing and i'd still have plenty of space left but it feels so wasteful when most blocks can't have a facing anyway >_<
@eniko fwiw you don't need to statically allocate bits, you can have some shared bits which have different interpretation depending on the kind of block you're dealing with.
-
@eniko fwiw you don't need to statically allocate bits, you can have some shared bits which have different interpretation depending on the kind of block you're dealing with.
-
@fabiosantoscode @eniko @lisyarus
NodeCore has an extension that makes it very easy to control rotations, which I love
The horizontal bit sounds like it would be very intuitive
> Click near an edge, and the node will be rotated 90Β° away from you.
It's like there's a stick up the center of the cube and you push it with your hand, making it rotate physically.
I'm guessing it works vertically too. The same situation but the stick would be horizontal