Implementation of Grid3DAction actions
Bases: cocos.actions.basegrid_actions.Grid3DAction
Simulates waves using the math.sin() function in the z-axis The x and y coordinates remains unmodified.
Example:
scene.do( Waves3D( waves=5, amplitude=40, grid=(16,16), duration=10) )
Parameters: |
|
---|
Bases: cocos.actions.basegrid_actions.Grid3DAction
FlipX3D flips the screen using the Y-axis as a pivot.
Bases: cocos.actions.basegrid_actions.Grid3DAction
FlipY3D flips the screen using the X-axis as a pivot.
Bases: cocos.actions.basegrid_actions.Grid3DAction
Lens simulates a Lens / Magnifying glass effect. It modifies the z-coordinate while the x and y remains unmodified.
Example:
scene.do( Lens3D(center=(320,240), radius=150, grid=(16,16), duration=10) )
Parameters: |
|
---|
Bases: cocos.actions.basegrid_actions.Grid3DAction
Shaky simulates an earthquake by modifying randomly the x, y and z coordinates of each vertex.
Example:
scene.do( Shaky3D( randrange=6, grid=(4,4), duration=10) )
Parameters: |
|
---|
Bases: cocos.actions.basegrid_actions.Grid3DAction
Simulates a ripple (radial wave) effect. The amplitude of the wave will decrease when it goes away from the center of the ripple. It modifies the z-coordinate while the x and y remains unmodified.
Example:
scene.do( Ripple3D(center=(320,240), radius=240, waves=15, amplitude=60, duration=20, grid=(32,24) ) )
Parameters: |
|
---|
Bases: cocos.actions.basegrid_actions.Grid3DAction
Simulates a liquid effect using the math.sin() function modifying the x and y coordinates. The z coordinate remains unmodified.
Example:
scene.do( Liquid( waves=5, amplitude=40, grid=(16,16), duration=10) )
Parameters: |
|
---|
Bases: cocos.actions.basegrid_actions.Grid3DAction
Simulates waves using the math.sin() function both in the vertical and horizontal axis. The z coordinate is not modified.
Example:
scene.do( Waves( waves=4, amplitude=20, hsin=False, vsin=True, grid=(16,16), duration=10) )
Initializes the Waves actions
Parameters: |
|
---|
Bases: cocos.actions.basegrid_actions.Grid3DAction
Simulates a twirl effect modifying the x and y coordinates. The z coordinate is not modified.
Example:
scene.do( Twirl( center=(320,240), twirls=5, amplitude=1, grid=(16,12), duration=10) )
Parameters: |
|
---|