1
Fork 0
mirror of https://github.com/Steffo99/looping-for-loops.git synced 2024-11-25 01:24:21 +00:00
looping-for-loops/Objects/ScrollingObjects/RecreatingRectangleShape.gd

11 lines
262 B
GDScript3
Raw Permalink Normal View History

2020-10-04 22:47:54 +00:00
extends CollisionShape2D
class_name RecreatingRectangleShape
func _ready():
var extents = shape.extents
var custom_solver_bias = shape.custom_solver_bias
shape = RectangleShape2D.new()
shape.extents = extents
shape.custom_solver_bias = custom_solver_bias