|10 October 2013||#1|
Join Date: Jul 2012
Espresso for target light 'wiggle'
Hey guys, i have a relatively simple question here, ive got a spot light and a null that is looking at via a target tag, now i wanted to know if its possible to make this light randomly aim around this target (i hope that makes sense) its a laser pointer over an smg that its facing its target but i wanted to move around as if the shooters gun has some shake or motion as he is aiming at the target
hope that made sense
|10 October 2013||#3|
Björn Dirk Marl
Maxon Computer GmbH
Join Date: Sep 2002
Without Xpresso: Put a Null under the current target, put a vibrate tag on it and use this Null as the new target.
You can also do it with Xpresso, but you can't use the Target tag then.
By subtracting the global positions of the light and the target you get a difference vector. By adding a random vector to the target position you can modify the targeting information.
With Vector2Matrix you can create a new alignment matrix for the light, combine this alignment with the position of the original light (v0) to a new global Matrix and assign it to the light.
- www.bonkers.de -
The views expressed on this post are my personal opinions and do not represent the views of my employer.
|Thread Closed share thread|