فهرست منبع

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

Juan Linietsky 11 سال پیش
والد
کامیت
6fa63c9ded
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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()