- 最后登录
- 2024-6-3
- 注册时间
- 2009-10-16
- 阅读权限
- 100
- 积分
- 18803
  
- 纳金币
- 17488
- 精华
- 1
|
Jitter (Animation Behavior)
Summary
Animates the value of any property on the parent object by a random (but bounded) amount a set number of times per second.
Category
Latest Behaviors
Author
Gavin Kistner
Difficulty
(Reference)
Time to Complete
5 Minutes
Downloads
Click Here
to download the associated files.
(This document covers version 2.1.2 of the 'Jitter' behavior, current as of 2005-Feb-11)
Description
The
Property Name
is specified relative to the behavior’s parent. For example, ‘rotation.x’ refers to the x value of the ‘rotation’ property on the object to which the behavior is attached.
The
Jitter Amount
property is maximum amount to deviate from the initial value. (For example, if the original value of the property is 75, and
Jitter Amount
is set to 15, the property will jitter to values between 60 and 90.)
The
Jitter Time
property is the number of seconds it takes to complete each jitter. (Larger is slower; a value of 0.1 will cause the property to reach an extreme value 10 times a second, while a value of .5 will only reach an extreme value 2 times per second.)
If
Start Immediately?
is not checked, the behavior will not do anything until the
Start
action is called.
To change the value around which the jitter occurs, use the
Set Center Value
action (or call the setCenter method of this behavior in script).
Basic Properties
Property Name
Code reference to the property to animate.
Jitter Amount
Specifies how much the parameter's value will drift from original (at most).
Jitter Time
Number of seconds it takes to complete each 'jitter'.
Start Immediately?
Start jittering immediately, or wait for the Start action to be called?
Actions
Start
Start jittering the controlled property.
Stop
Stop jittering the controlled property.
Toggle
If the Jitter is running, stop it; otherwise, start it.
Set Center Value
Set the center value around which the property will jitter.
Center Value
The new center value.
Events
Started
Fires whenever the jitter is started.
Stopped
Fires whenever the jitter is stopped.
Demonstration
![]()
View Demonstration Project
![]()
Download Project File
|
|