Degrotate will change from 0-179 to 0-239

Post Reply
User avatar
Wuzzy
Member
Posts: 4778
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Degrotate will change from 0-179 to 0-239

by Wuzzy » Post

Recently, a major change was merged for the paramtype2 “degrotate”:
First of all, degrotate is now supported for meshes as well. :)

But second of all, the meaning of param2 is changing. The valid value range is no longer 0-179, but 0-239.
The angle is changed with param2 in 1.5° steps. I.e. a param2=1 will stand for 1.5° in the next version.
This new range was chosen because it is more flexible and allows more numbers cleanly, especialy 45°. I am more happy with the new numbers.

The previous value range from 0-179 only allowed a precision of 2° steps, so 45° was not possible.

But this is a change means any existing nodes that use degrotate will have their rotation changed. Keep this in mind for your games. I don't know how many games have already used degrotate.

Third of all, colordegrotate with range 0-24 in 15° steps for each color will be added. ^_^ Cool stuff!

Relevant commit: https://github.com/minetest/minetest/co ... f47ec74ce1
Relevant PR: https://github.com/minetest/minetest/pull/7840

Personally, I think this change is still a good one. The number incompability is probably not really relevant, as degrotate only worked for plantlike nodes before.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests