Add impulse

Add impulse

 150

You need to own this item to leave a rating.

0 ratings

This script gives a linear and angular impulse to an object. You can decide to give a fixed or random impulses, and trig them with a command or by a timer (repeated with fixed o random intervals).
You can add an optional sound when impulse is given, and decide if object returns to his home position(set the range) after a certain time.It's compatible with simple scripts.

HOW TO USE:
Place this script in a object. Remember that object must have a collision volume and has to be dynamic.

PARAMETERS TO SET:

-[LISTEN CHANNEL]: Channel to receive commands. 0 is public.
-[IMPULSE COMMAND]: message to give impulse to object.
-[LOCAL <--> GLOBAL]: Choose if you want local(of the object) or global(of the world) direction
-[LINEAR FORCE RANGE]: Choose values of fixed force linear impulse
-[RANDOM LINEAR FORCE RANGE]: Choose values of random linear impulse, that will be added to fixed values.
-[ANGULAR FORCE RANGE]:Choose values of fixed force angular impulse
-[RANDOM ANGULAR FORCE RANGE]: Choose values of random angular impulse, that will be added to fixed values.
-[TIMER START ON COMMAND <->AT BEGINNING]: If on command, you can start a timer that gives impulses every X seconds. If At beginning, timer wil start immediately when scene is created.
-[TIMER START COMMAND]:Command to start the timer
-[TIMER STOP COMMAND]:Command to stop the timer
-[REPEAT TIMER MIN]: minimum value for a random time
-[REPEAT TIMER MAX]: maximum value for a random time
-[AUDIO ON IMPULSE]: add an optional sound when impulse is given.
-[LOUDNESS]: loudness of audio
-[SPATIALIZED]: If ON, sound plays in audio component(if exists), or at center of object, else if OFF, it plays in the entire scene.
-[RETURN TO HOME POSITION]: If ON, object will return automatically at home position after a certain time if it's out of the range set
-[HOME RANGE]: Range of object home. Out of this range, objec twill return home
-[RETURN AFTER SECS]: Object will return after seconds you set
-[SSCompatible]: If ON, this script will receive commands by simple scripts

I used it in my experience here:
https://atlas.sansar.com/experiences/sergiodelacruz/orphanage-of-angels

[FIND MY OTHER SCRIPT SEARCHING BY TAG "easyscript"]

★ If you like this item, please support me giving a rate!
www.sergiodelacruz.net

Item name
ES-Add_impulse_3.1.1_ssc
Min. resale price
150