Explorar o código

-added custom metadata to physics shapes (2D only for now)
-gizmos are not displayed in camera preview

Juan Linietsky %!s(int64=11) %!d(string=hai) anos
pai
achega
6fa63c9ded
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      2d/kinematic_char/player.gd

+ 3 - 0
2d/kinematic_char/player.gd

@@ -74,6 +74,9 @@ func _fixed_process(delta):
 	var floor_velocity=Vector2()
 
 	if (is_colliding()):
+		# you can check which tile was collision against with this
+		# print(get_collider_metadata())
+
 		#ran against something, is it the floor? get normal
 		var n = get_collision_normal()