Add lever and jump pad components with activation logic
This commit is contained in:
10
addons/rmsmartshape/actions/action_split_curve.gd
Normal file
10
addons/rmsmartshape/actions/action_split_curve.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
extends "res://addons/rmsmartshape/actions/action_add_point.gd"
|
||||
|
||||
## ActionSplitCurve
|
||||
|
||||
func _init(shape: SS2D_Shape, idx: int, gpoint: Vector2, xform: Transform2D, commit_update: bool = true) -> void:
|
||||
super._init(shape, xform.affine_inverse() * gpoint, idx, commit_update)
|
||||
|
||||
|
||||
func get_name() -> String:
|
||||
return "Split Curve at (%d, %d)" % [_position.x, _position.y]
|
Reference in New Issue
Block a user