Add project files
This commit is contained in:
commit
ab339c8a2c
81 changed files with 2567 additions and 0 deletions
17
addons/godot-rapier2d/fluid_2d_rectangle.gd
Normal file
17
addons/godot-rapier2d/fluid_2d_rectangle.gd
Normal file
|
@ -0,0 +1,17 @@
|
|||
@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
|
Reference in a new issue