Input that adds / subtracts to velocity, with a minimum and maximum velocity?
I'm trying to make a vehicle that starts at a minimum speed moving forward, and as you use R2, it adds to the velocity, staying at that level if you release R2, with L2 lowering it the same way- with a maximum and minimum velocity set. I've tried a number of things, but can't get the desired effect.
Any ideas?
-
Hi,
There is a maths gadget where you can subract or add numbers together, and put that result into the speed of a mover.
John -
I've had a similar problem. The issue is storing a value that can be modified over time. I used a variable for this but it isn't quite what variables were intended for. It works fine though. Your value for R2 would go into a variable modifier to increase the speed value. You'd probably need to scale it down with a calculator. Variables have their own max and min so you shouldn't need checks to avoid exceeding those.
You can also use a value slider as a way to store a value with a max and min. You would wire the set value input to the current value plus the increment calculated from R2. On the dreamiverse there is a local variable chip that helps with this. -
Let me know if you're stuck, I could share a quick implementation of this later.
-
Thanks for these suggestions, I will see if I can implement them!
댓글을 남기려면 로그인하세요.