Example #1
0
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();
}
Example #2
0
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();
}
Example #3
0
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();
}
Example #4
0
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();
}
Example #5
0
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();
}
Example #7
0
void RayShape::set_length(float p_length) {

	length = p_length;
	_update_shape();
	notify_change_to_owners();
}