|
| 1 | +# [Documentation Here](https://docs.royalewind.com/rw_transform) |
| 2 | + |
1 | 3 | ## Beautiful Transitions Made Easy |
2 | 4 |
|
3 | 5 | Transform entities effortlessly with a variety of popular transitions: |
@@ -25,45 +27,3 @@ Transform entities effortlessly with a variety of popular transitions: |
25 | 27 | | **clockwise** | Rotates clockwise. | |
26 | 28 | | **counterclockwise** |Rotatess counterclockwise. | |
27 | 29 |
|
28 | | - |
29 | | -Enhance the visual appeal of your applications with these smooth transitions! |
30 | | -## Preview |
31 | | -# MoveEntity |
32 | | -```lua |
33 | | -local pos = vec3(0.0,0.0,2.0) |
34 | | -exports.rw_transform:TransitionEntity("Linear",entity,pos,2) |
35 | | - |
36 | | -MoveEntity(transitionName, entity, targetPosition, duration) |
37 | | -``` |
38 | | - |
39 | | -# RotateEntity |
40 | | -```lua |
41 | | -local rad = vec3(0.0,0.0,60.0) |
42 | | -exports.rw_transform:RotateEntity("Linear",entity,rad,2) |
43 | | - |
44 | | -RotateEntity(transitionName, entity, targetRotation, duration) |
45 | | -Default to shortest path |
46 | | -or |
47 | | -RotateEntity(transitionName, entity, targetRotation, duration,"counterclockwise") |
48 | | -``` |
49 | | - |
50 | | -# TransitionEntity |
51 | | -```lua |
52 | | -local rad = vec3(0.0,0.0,60.0) |
53 | | -local pos = vec3(0.0,0.0,2.0) |
54 | | -exports.rw_transform:TransitionEntity("Linear",entity,rad,pos,2) |
55 | | - |
56 | | -TransitionEntity(transitionName, entity, targetRotation, targetPosition, duration) |
57 | | -Default to shortest path |
58 | | -or |
59 | | -TransitionEntity(transitionName, entity, targetRotation, targetPosition, duration,"clockwise") |
60 | | -``` |
61 | | - |
62 | | - |
63 | | -# CubicBezier |
64 | | -https://cubic-bezier.com/#1,0,.63,.44 |
65 | | -```lua |
66 | | -BezierRotateEntity(x1,y1,x2,y2, entity, targetRotation, duration,"clockwise") |
67 | | -BezierMoveEntity(x1,y1,x2,y2, entity, targetPosition, duration) |
68 | | -BezierTransitionCubicBezier(x1,y1,x2,y2,entity,targetRotation,targetPosition,duration,"clockwise") |
69 | | -``` |
0 commit comments