Browse Source

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

Juan Linietsky 11 years ago
parent
commit
6fa63c9ded
1 changed files with 3 additions and 0 deletions
  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()