mastodon.gamedev.place is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server focused on game development and related topics.

Server stats:

5.7K
active users

So imagine I wanted a sine function, but more flattened towards the extremes. Like squared, but both ways. How would I go about this?

Jacek Wesołowski

@sos I think I'd try to feed the sine into a sigmoid function. Sigmoids can be parametrized, so you can control the steepness of the slope and the range of values (it doesn't have to be -1 to 1).