Fix bindings of PhysicsServer3DRenderingServerHandler
This commit is contained in:
@ -155,11 +155,9 @@ void GodotSoftBody3D::update_rendering_server(PhysicsServer3DRenderingServerHand
|
||||
for (uint32_t i = 0; i < vertex_count; ++i) {
|
||||
const uint32_t node_index = map_visual_to_physics[i];
|
||||
const Node &node = nodes[node_index];
|
||||
const Vector3 &vertex_position = node.x;
|
||||
const Vector3 &vertex_normal = node.n;
|
||||
|
||||
p_rendering_server_handler->set_vertex(i, &vertex_position);
|
||||
p_rendering_server_handler->set_normal(i, &vertex_normal);
|
||||
p_rendering_server_handler->set_vertex(i, node.x);
|
||||
p_rendering_server_handler->set_normal(i, node.n);
|
||||
}
|
||||
|
||||
p_rendering_server_handler->set_aabb(bounds);
|
||||
|
||||
Reference in New Issue
Block a user