File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed
2d/physics_tests/tests/functional
xr/openxr_hand_tracking_demo/pickup Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1- class_name Test
2- extends TestCharacter
1+ class_name TestCharacter
2+ extends Test
33
44enum BodyType {
55 CHARACTER_BODY ,
Original file line number Diff line number Diff line change 11@tool
2- extends CompositorEffect
32class_name PostProcessGrayScale
3+ extends CompositorEffect
44
55var rd : RenderingDevice
66var shader : RID
Original file line number Diff line number Diff line change 11@tool
2- extends CompositorEffect
32class_name PostProcessShader
3+ extends CompositorEffect
44
55const template_shader := """#version 450
66
Original file line number Diff line number Diff line change 1- extends RigidBody3D
21class_name PickupAbleBody3D
3-
2+ extends RigidBody3D
43
54var highlight_material : Material = preload ("res://shaders/highlight_material.tres" )
65var picked_up_by : Area3D
@@ -9,6 +8,7 @@ var closest_areas : Array
98var original_parent : Node3D
109var tween : Tween
1110
11+
1212# Called when this object becomes the closest body in an area
1313func add_is_closest (area : Area3D ) -> void :
1414 if not closest_areas .has (area ):
Original file line number Diff line number Diff line change 11@tool
2- extends Area3D
32class_name PickupHandler3D
3+ extends Area3D
44
55# This area3D class detects all physics bodys based on
66# PickupAbleBody3D within range and handles the logic
@@ -24,6 +24,7 @@ var closest_body : PickupAbleBody3D
2424var picked_up_body : PickupAbleBody3D
2525var was_pickup_pressed : bool = false
2626
27+
2728# Update our detection range.
2829func _update_detect_range () -> void :
2930 var shape : SphereShape3D = $ CollisionShape3D .shape
You can’t perform that action at this time.
0 commit comments