void MeshLibrary::set_item_mesh(int p_item, const Ref<Mesh> &p_mesh) { ERR_FAIL_COND(!item_map.has(p_item)); item_map[p_item].mesh = p_mesh; notify_change_to_owners(); emit_changed(); _change_notify(); }
void MeshLibrary::remove_item(int p_item) { ERR_FAIL_COND(!item_map.has(p_item)); item_map.erase(p_item); notify_change_to_owners(); _change_notify(); emit_changed(); }
void MeshLibrary::set_item_shape(int p_item, const Ref<Shape> &p_shape) { ERR_FAIL_COND(!item_map.has(p_item)); item_map[p_item].shape = p_shape; _change_notify(); notify_change_to_owners(); emit_changed(); _change_notify(); }
void MeshLibrary::set_item_shapes(int p_item, const Vector<ShapeData> &p_shapes) { ERR_FAIL_COND(!item_map.has(p_item)); item_map[p_item].shapes = p_shapes; _change_notify(); notify_change_to_owners(); emit_changed(); _change_notify(); }
void ConcavePolygonShape::set_faces(const PoolVector<Vector3>& p_faces) { PhysicsServer::get_singleton()->shape_set_data(get_shape(),p_faces); notify_change_to_owners(); }
void ConvexPolygonShape::set_points(const PoolVector<Vector3> &p_points) { points = p_points; _update_shape(); notify_change_to_owners(); }
void RayShape::set_length(float p_length) { length = p_length; _update_shape(); notify_change_to_owners(); }