summaryrefslogtreecommitdiff
path: root/scene/3d/ray_cast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/3d/ray_cast.cpp')
-rw-r--r--scene/3d/ray_cast.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/scene/3d/ray_cast.cpp b/scene/3d/ray_cast.cpp
index 2b8df8265e..8216d7295f 100644
--- a/scene/3d/ray_cast.cpp
+++ b/scene/3d/ray_cast.cpp
@@ -5,7 +5,7 @@
/* GODOT ENGINE */
/* http://www.godotengine.org */
/*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur. */
+/* Copyright (c) 2007-2017 Juan Linietsky, Ariel Manzur. */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
@@ -210,37 +210,37 @@ void RayCast::clear_exceptions(){
void RayCast::_bind_methods() {
- ObjectTypeDB::bind_method(_MD("set_enabled","enabled"),&RayCast::set_enabled);
- ObjectTypeDB::bind_method(_MD("is_enabled"),&RayCast::is_enabled);
+ ClassDB::bind_method(_MD("set_enabled","enabled"),&RayCast::set_enabled);
+ ClassDB::bind_method(_MD("is_enabled"),&RayCast::is_enabled);
- ObjectTypeDB::bind_method(_MD("set_cast_to","local_point"),&RayCast::set_cast_to);
- ObjectTypeDB::bind_method(_MD("get_cast_to"),&RayCast::get_cast_to);
+ ClassDB::bind_method(_MD("set_cast_to","local_point"),&RayCast::set_cast_to);
+ ClassDB::bind_method(_MD("get_cast_to"),&RayCast::get_cast_to);
- ObjectTypeDB::bind_method(_MD("is_colliding"),&RayCast::is_colliding);
- ObjectTypeDB::bind_method(_MD("force_raycast_update"),&RayCast::force_raycast_update);
+ ClassDB::bind_method(_MD("is_colliding"),&RayCast::is_colliding);
+ ClassDB::bind_method(_MD("force_raycast_update"),&RayCast::force_raycast_update);
- ObjectTypeDB::bind_method(_MD("get_collider"),&RayCast::get_collider);
- ObjectTypeDB::bind_method(_MD("get_collider_shape"),&RayCast::get_collider_shape);
- ObjectTypeDB::bind_method(_MD("get_collision_point"),&RayCast::get_collision_point);
- ObjectTypeDB::bind_method(_MD("get_collision_normal"),&RayCast::get_collision_normal);
+ ClassDB::bind_method(_MD("get_collider"),&RayCast::get_collider);
+ ClassDB::bind_method(_MD("get_collider_shape"),&RayCast::get_collider_shape);
+ ClassDB::bind_method(_MD("get_collision_point"),&RayCast::get_collision_point);
+ ClassDB::bind_method(_MD("get_collision_normal"),&RayCast::get_collision_normal);
- ObjectTypeDB::bind_method(_MD("add_exception_rid","rid"),&RayCast::add_exception_rid);
- ObjectTypeDB::bind_method(_MD("add_exception","node"),&RayCast::add_exception);
+ ClassDB::bind_method(_MD("add_exception_rid","rid"),&RayCast::add_exception_rid);
+ ClassDB::bind_method(_MD("add_exception","node"),&RayCast::add_exception);
- ObjectTypeDB::bind_method(_MD("remove_exception_rid","rid"),&RayCast::remove_exception_rid);
- ObjectTypeDB::bind_method(_MD("remove_exception","node"),&RayCast::remove_exception);
+ ClassDB::bind_method(_MD("remove_exception_rid","rid"),&RayCast::remove_exception_rid);
+ ClassDB::bind_method(_MD("remove_exception","node"),&RayCast::remove_exception);
- ObjectTypeDB::bind_method(_MD("clear_exceptions"),&RayCast::clear_exceptions);
+ ClassDB::bind_method(_MD("clear_exceptions"),&RayCast::clear_exceptions);
- ObjectTypeDB::bind_method(_MD("set_layer_mask","mask"),&RayCast::set_layer_mask);
- ObjectTypeDB::bind_method(_MD("get_layer_mask"),&RayCast::get_layer_mask);
+ ClassDB::bind_method(_MD("set_layer_mask","mask"),&RayCast::set_layer_mask);
+ ClassDB::bind_method(_MD("get_layer_mask"),&RayCast::get_layer_mask);
- ObjectTypeDB::bind_method(_MD("set_type_mask","mask"),&RayCast::set_type_mask);
- ObjectTypeDB::bind_method(_MD("get_type_mask"),&RayCast::get_type_mask);
+ ClassDB::bind_method(_MD("set_type_mask","mask"),&RayCast::set_type_mask);
+ ClassDB::bind_method(_MD("get_type_mask"),&RayCast::get_type_mask);
ADD_PROPERTY(PropertyInfo(Variant::BOOL,"enabled"),_SCS("set_enabled"),_SCS("is_enabled"));
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3,"cast_to"),_SCS("set_cast_to"),_SCS("get_cast_to"));
- ADD_PROPERTY(PropertyInfo(Variant::INT,"layer_mask",PROPERTY_HINT_ALL_FLAGS),_SCS("set_layer_mask"),_SCS("get_layer_mask"));
+ ADD_PROPERTY(PropertyInfo(Variant::INT,"layer_mask",PROPERTY_HINT_LAYERS_3D_PHYSICS),_SCS("set_layer_mask"),_SCS("get_layer_mask"));
ADD_PROPERTY(PropertyInfo(Variant::INT,"type_mask",PROPERTY_HINT_FLAGS,"Static,Kinematic,Rigid,Character,Area"),_SCS("set_type_mask"),_SCS("get_type_mask"));
}