summaryrefslogtreecommitdiff
path: root/demos/2d/kinematic_char
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2014-10-16 00:06:34 -0300
committerJuan Linietsky <reduzio@gmail.com>2014-10-16 00:06:34 -0300
commit371eac9beffdfe416b8555ee006baf0ffae2bef3 (patch)
treebfb0f6dc2a0a4812d69a8aa9902ad0c42021a522 /demos/2d/kinematic_char
parent6e87c80e41857fe4f151cdeb8b9a7206c226bd8f (diff)
-added custom metadata to physics shapes (2D only for now)
-gizmos are not displayed in camera preview
Diffstat (limited to 'demos/2d/kinematic_char')
-rw-r--r--demos/2d/kinematic_char/player.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/demos/2d/kinematic_char/player.gd b/demos/2d/kinematic_char/player.gd
index 5c56477758..9cff0269e8 100644
--- a/demos/2d/kinematic_char/player.gd
+++ b/demos/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()