Skip to content

Commit

Permalink
Merge pull request #8 from ydipeepo/1.0.4
Browse files Browse the repository at this point in the history
1.0.4
  • Loading branch information
ydipeepo authored Jan 5, 2025
2 parents e807955 + 1977c78 commit 684a103
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions addons/xdut-motion/GlideMotionExpression.gd
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ func set_rest_delta(value: float) -> GlideMotionExpression:
_trans_init.rest_delta = value
return self

## このアニメーションが何を重視するか設定します。
func set_prefer(value: int) -> GlideMotionExpression:
match value:
XDUT_GlideMotionTransition.PREFER_VELOCITY, \
XDUT_GlideMotionTransition.PREFER_POSITION:
_trans_init.prefer = value
return self

## このアニメーションを速度を重視するよう設定します。
func prefer_velocity() -> GlideMotionExpression:
_trans_init.prefer = XDUT_GlideMotionTransition.PREFER_VELOCITY
Expand Down
2 changes: 1 addition & 1 deletion addons/xdut-motion/plugin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
name="XDUT Motion"
description="継続可能なバネや滑走アニメーション、加速度の情報を持った Tween を含む、ノードをアニメーションさせるためのアドオンです。"
author="Ydi (@ydipeepo.bsky.social)"
version="1.0.3"
version="1.0.4"
script="plugin.gd"

0 comments on commit 684a103

Please sign in to comment.