I am a brainlet trying to make a lewd game and i seem incapable of plotting the values to calculate "the end". So far i have 5 values i use for calculating the pleasure (desire, arousal, basePleasure, sensitivity and partnerAbility).Is there a way to get these values to plot a curve like that finishes at minimum x seconds or 2x seconds max?
Here I've modelled arousal as time^1.8. y=x^1.8. I've picked 1.8 because it's not too curvy nor too linear, but any number works. Orgasm is achieved at y=1.You can see that using some algebra (picrel), you can calculate the specific "a" that lets ensures y=1 is reached for some specific value we have picked (the time to orgasm). The "a" parameter does this by stretching the graph length-wise*. Note that my algebra is pretty wordy.Here's a desmos graph you can play around with. Drag the dot to control when orgasm is reached.https://www.desmos.com/calculator/zvbhrjonp8*Okay it stretches it heightwise but it's the effectively the same thing for this type of graph.
Ah I just realise what I've been calling arousal, you call pleasure. Do a mental Ctrl+H when reading what I wrote.Not to cause scope creep or anything, but it turns out this topic of modelling arousal (pleasure) has been studied a little bit.People propose that arousal (pleasure) occurs in stages, rather than in a single stage.Using this model instead, you could achieve a richer simulation. You could adjust the height of the plateau, the intensity/duration of the orgasm, and even no any orgasm. This multiple stage sort of thing will need to be modelled 'piecewise'. (I.e. a different equation for different sections; simpler than you think). I guess in programming it would be some if statements. You'd have a linear section for the build up, flat line for the pleatau, and then an inverted parabola for the orgasms. Then a very steep linear section for the drop off.This is only showing Masters&Johnsons model, but I remember seeing alternative proposed graphs that were qualitatively different from this.
My dude, thank you, I will try it for sure and if the thread is still active, post results