Skip to content

Commit

Permalink
Expose physics RID
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan-000 committed Jul 26, 2024
1 parent cb57596 commit 24985b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/terrain_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1259,6 +1259,7 @@ void Terrain3D::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_collision_mask"), &Terrain3D::get_collision_mask);
ClassDB::bind_method(D_METHOD("set_collision_priority", "priority"), &Terrain3D::set_collision_priority);
ClassDB::bind_method(D_METHOD("get_collision_priority"), &Terrain3D::get_collision_priority);
ClassDB::bind_method(D_METHOD("get_rid"), &Terrain3D::get_rid);

ClassDB::bind_method(D_METHOD("get_intersection", "src_pos", "direction"), &Terrain3D::get_intersection);
ClassDB::bind_method(D_METHOD("bake_mesh", "lod", "filter"), &Terrain3D::bake_mesh);
Expand Down
1 change: 1 addition & 0 deletions src/terrain_3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ class Terrain3D : public Node3D {
uint32_t get_collision_mask() const { return _collision_mask; };
void set_collision_priority(const real_t p_priority);
real_t get_collision_priority() const { return _collision_priority; }
RID get_rid() const { return _static_body; };

// Terrain methods
void snap(const Vector3 &p_cam_pos);
Expand Down

0 comments on commit 24985b9

Please sign in to comment.