|
@@ -34,20 +34,24 @@
|
|
#include "core/string/print_string.h"
|
|
#include "core/string/print_string.h"
|
|
#include "core/variant/typed_array.h"
|
|
#include "core/variant/typed_array.h"
|
|
|
|
|
|
-void PhysicsServer3DRenderingServerHandler::set_vertex(int p_vertex_id, const void *p_vector3) {
|
|
|
|
- GDVIRTUAL_REQUIRED_CALL(_set_vertex, p_vertex_id, p_vector3);
|
|
|
|
|
|
+void PhysicsServer3DRenderingServerHandler::set_vertex(int p_vertex_id, const Vector3 &p_vertex) {
|
|
|
|
+ GDVIRTUAL_REQUIRED_CALL(_set_vertex, p_vertex_id, p_vertex);
|
|
}
|
|
}
|
|
-void PhysicsServer3DRenderingServerHandler::set_normal(int p_vertex_id, const void *p_vector3) {
|
|
|
|
- GDVIRTUAL_REQUIRED_CALL(_set_normal, p_vertex_id, p_vector3);
|
|
|
|
|
|
+void PhysicsServer3DRenderingServerHandler::set_normal(int p_vertex_id, const Vector3 &p_normal) {
|
|
|
|
+ GDVIRTUAL_REQUIRED_CALL(_set_normal, p_vertex_id, p_normal);
|
|
}
|
|
}
|
|
void PhysicsServer3DRenderingServerHandler::set_aabb(const AABB &p_aabb) {
|
|
void PhysicsServer3DRenderingServerHandler::set_aabb(const AABB &p_aabb) {
|
|
GDVIRTUAL_REQUIRED_CALL(_set_aabb, p_aabb);
|
|
GDVIRTUAL_REQUIRED_CALL(_set_aabb, p_aabb);
|
|
}
|
|
}
|
|
|
|
|
|
void PhysicsServer3DRenderingServerHandler::_bind_methods() {
|
|
void PhysicsServer3DRenderingServerHandler::_bind_methods() {
|
|
- GDVIRTUAL_BIND(_set_vertex, "vertex_id", "vertices");
|
|
|
|
- GDVIRTUAL_BIND(_set_normal, "vertex_id", "normals");
|
|
|
|
|
|
+ GDVIRTUAL_BIND(_set_vertex, "vertex_id", "vertex");
|
|
|
|
+ GDVIRTUAL_BIND(_set_normal, "vertex_id", "normal");
|
|
GDVIRTUAL_BIND(_set_aabb, "aabb");
|
|
GDVIRTUAL_BIND(_set_aabb, "aabb");
|
|
|
|
+
|
|
|
|
+ ClassDB::bind_method(D_METHOD("set_vertex", "vertex_id", "vertex"), &PhysicsServer3DRenderingServerHandler::set_vertex);
|
|
|
|
+ ClassDB::bind_method(D_METHOD("set_normal", "vertex_id", "normal"), &PhysicsServer3DRenderingServerHandler::set_normal);
|
|
|
|
+ ClassDB::bind_method(D_METHOD("set_aabb", "aabb"), &PhysicsServer3DRenderingServerHandler::set_aabb);
|
|
}
|
|
}
|
|
|
|
|
|
PhysicsServer3D *PhysicsServer3D::singleton = nullptr;
|
|
PhysicsServer3D *PhysicsServer3D::singleton = nullptr;
|