Hi
I have this equation:
V * D^T + W * T <= A
I need to rearrange it so it becomes an expression reflecting what t is ( t = ??? ).
I am completly blank, i dont know what to do....
Can someone give me a hint about how to proceede?
Printable View
Hi
I have this equation:
V * D^T + W * T <= A
I need to rearrange it so it becomes an expression reflecting what t is ( t = ??? ).
I am completly blank, i dont know what to do....
Can someone give me a hint about how to proceede?
T = (A-V*D^T)/W
Good luck with solving that equation xD
That's not a solution - it still has "T" on both sides of the equation. There probably is no solution.
According to Wolfram Alpha:
T = (A log(D)-W p((V D^(A/W) log(D))/W))/(W log(D))
log(x) is the natural logarithm
p(z) is the product log function (which MMF2 doesn't support)
In other words: whatever you're trying to do - forget it, and find another way.
Yeah, I guess I missed that..
Let's call W B instead.
Then T = (A log(D)-B W((D^(A/B) V log(D))/B))/(B log(d)) where W is the Lambert W function.
Don't think you can implement that in MMF.
"^" means exponent (raising it to a power)
There are curve functions that demand dynamic exponents. Usually they're connected to gamebalance or movement patterns, and most likely more areas I don't know about yet.
Very useful information Hawker (MMF2 restrictions), thanks.
King_Cool, if you state the problem someone might be able to modify your formula to something MMF2 can handle.
Ill explain in detail whats going on...
...
I have a moving Object.
Object only moves left or right, along the horizontal plane.
There are two general forces affecting the Objects movement.
(1) OBJECTS PERSONAL MOVEMENT
- Objects personal movement direction and speed is represented by V ( + for right - for left, V represents pixels moved along the horizontal plane )
- Object also has an Initial Speed, Vi
- Object also has a Wind Speed, Vw ( + for right - for left, Vw represents additional pixels moved along the horizontal plane )
(2) WIND
- Wind direction and power is represented by W ( + for right - for left, W represents the increase of Vw each frame, W does not change durring the cource of a simulation )
(3)
Every Frame this happens:
- Object moves V + Vw number of pixels
- W is added to Vw
- V is multiplied by D ( decelleration, a number between 0 and 1 )
WHAT I WANT
I want to be able to predict how far the Object moves from its original position before its Total Speed ( V + Vw ) reaches a Target Speed ( Vt ).
So i have
Vi
D
Vw
W
Vt
T ( Time/ Frame Nr )
- All values except Time ( T ) and Wind Speed ( Vw ) are known.
- All values are potential floats, only T is integer.
It is worth mentioning that there is generaly only a solution to this when Objects Initial Speed ( Vi ) and Wind Power ( Vw ) work in opposite directions ( +Vi -Vw or -Vi +Vw ).
EDIT: This has eventually become too troubblesome, and im stuck with a mediocre unsatesfying solution for now, but still if anyone are able to solve such a problem that would be most welcome!
OldLongDragon: If you imply that a solution is impossible for this version of MMF you are wrong, secondly if you suggest to others that there is no solution, you would be hurting the community of MMF. I have solved this so I'm indifferent, but I try to help out because one day I might need help, and some guys here are really competent (Hawker, Popcorn and many more). You are preventing creativity and progress by convincing others to stop trying, that's a fact, it's not my opinion.
King: I know how to solve this depending on how the acceleration and angle is applied (no logarithmic involved), if you are willing to share the mfa I could have a look at it.