QuickshotDev
New member
- Joined
- Nov 27, 2014
- Messages
- 2
The function is (x+100)^2 (x-100)^2 *0.0000005
I have modeled this function for a computer game I am working on.
I need a way to be able to change the defined vertex points to anything but continue to have the maximum vertex stationary at 50.
I found that if the defined points lie at -100 and 100 then I can just multiply it by 0.0000005 but this value does not work when I shift the minimum vertexes apart.
this is what I am working with in my actual code: ( power( clamp(xx,x-splash_width/2,x+splash_width/2) -1*(x-splash_width/2),2) *power( clamp(xx,x-splash_width/2,x+splash_width/2) -1*(x+splash_width/2),2) )
splash_width is equal to 200
but I want to be able to change this variable and keep the maximum point at 50.
thanks