-
Some help would help
I was wondering if it was possible to have a directional force activated by a Right Stick(right) impulse then have that same force activated and inverted with a Right Stick(left) impulse?? I hope that made sense.
-
Member
Re: Some help would help
Yup, Set up two variable data sources (VDS); one will be used to turn the force on and off (values of 1 and 0) and on will be used to turn the invert on and off (again 1 and 0).
Each VDS will have two set value events targeting them. One will set the value to 1 (On) and one will set the value to 0 (off).
Then you have to go to the directional force and connect the enabled checkbox to one of the VDS and connect the invert checkbox to the other one.
Put in a Right stick Right and Right stick left (last category in the triggers and events section.
For the right on press should go to a splitter, which will then turn ON (1) the VDS that enables the force and turn OFF (0) the invert VDS.
For the Left on press goes to a splitter that then turns ON (1) both VDS to enable the force and enable the invert.
Both left and right should send on release to turn OFF (0) the force, unless you want the force to keep going.
Personally I have used this kind of setup because I did need the precise exactness that inverting a force allows, but unless you need super exact movements you might as well use a game variable data source, multiply those values, and send those to the force value of the directional force. It's much easier and more dynamic.
will have use the right stick (right) (either controller or button don't remember which) and send the on press to a
-
Senior Member
Re: Some help would help
i had problems with the invert on the direction force for some reason, the only way i got it working was to put a negative value for the force, i was using the directional force pointing to an object in its glue group. it may just have been a silly error on my end though.
another thing you could consider using is the two input operator, using less than (this sets the output to 1, if operand 1 (stick value) is less than operand 2, in this case 0) and point this to the invert, and may shorten a long chain of functions.
-
Re: Some help would help
Thnx. for the help; It is much apperciated and I think I should be able to acomplish what I set out to do now.