This repository has been archived on 2025-09-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
rectangular/addons/godot-rapier2d/fluid_2d_rectangle.gd

18 lines
323 B
GDScript3
Raw Normal View History

2024-09-25 21:18:58 +02:00
@tool
extends Fluid2D
@export var height := 10:
set(value):
if height != value:
height = value
points = create_rectangle_points(width, height)
get:
return height
@export var width := 10:
set(value):
if width != value:
width = value
points = create_rectangle_points(width, height)
get:
return width