I know I am becoming a plague but I have so many questions.
This learning curve is bloody steep. Anyway, just wondering if
anybody out there have ever put any effects on a 3d world member. I
would like some kind of shudder/ripple effect everytime I hit the
base drum. Anybody got suggestions?
Put a little random decaying noise on your objects (or,
better yet, your camera). At a frequent interval, like stepframe,
or on a 30ms timeout:
(pCount would be a global or property that increments every
pCount = pCount + 1 -- increment this every time interval
vNoiseVector = randomVector() / pCount -- returns a random
vector that gets smaller with time
vNoiseVector = vNoiseVector * vSomeScalingFactor -- scale
this very small vector up to a size that can be used in your scene
-- set your object/camera position
You might want to get the position of the object
(pInitialPosition) before doing this, and adjust against that
postion every time. So, instead of translate, use:
yourObjectReference.transform.position = pInitialPosition +
also you may want to power() pCount to get a faster decay.