您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ update_gizmo函数代码示例

51自学网 2021-06-03 09:15:27
  C++
这篇教程C++ update_gizmo函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中update_gizmo函数的典型用法代码示例。如果您正苦于以下问题:C++ update_gizmo函数的具体用法?C++ update_gizmo怎么用?C++ update_gizmo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了update_gizmo函数的25个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: update_gizmo

void RayCast::set_cast_to(const Vector3& p_point) {	cast_to=p_point;	if (is_inside_tree() && get_tree()->is_editor_hint())		update_gizmo();}
开发者ID:AwsomeGameEngine,项目名称:godot,代码行数:7,


示例2: update_gizmo

void Portal::set_shape(const Vector<Point2>& p_shape) {	VisualServer::get_singleton()->portal_set_shape(portal, p_shape);	shape=p_shape;	update_gizmo();}
开发者ID:baekdahl,项目名称:godot,代码行数:7,


示例3: update_gizmo

void RayCast::set_cast_to(const Vector3& p_point) {	cast_to=p_point;	if (is_inside_tree() && (get_tree()->is_editor_hint() || get_tree()->is_debugging_collisions_hint()))		update_gizmo();}
开发者ID:DEBoshir,项目名称:godot,代码行数:7,


示例4: update_gizmo

void NavigationMeshInstance::set_enabled(bool p_enabled) {	if (enabled==p_enabled)		return;	enabled=p_enabled;	if (!is_inside_scene())		return;	if (!enabled) {		if (nav_id!=-1) {			navigation->navmesh_remove(nav_id);			nav_id=-1;		}	} else {		if (navigation) {			if (navmesh.is_valid()) {				nav_id = navigation->navmesh_create(navmesh,get_relative_transform(navigation));			}		}	}	update_gizmo();}
开发者ID:ErosOlmi,项目名称:godot,代码行数:29,


示例5: update_gizmo

void Particles::set_visibility_aabb(const AABB& p_aabb) {	visibility_aabb=p_aabb;	VisualServer::get_singleton()->particles_set_visibility_aabb(particles,p_aabb);	update_gizmo();	}
开发者ID:3miu,项目名称:godot,代码行数:7,


示例6: ERR_FAIL_INDEX

void Particles::set_variable(Variable p_variable,float p_value) {	ERR_FAIL_INDEX(p_variable,VAR_MAX);	var[p_variable]=p_value;	VisualServer::get_singleton()->particles_set_variable(particles,(VS::ParticleVariable)p_variable,p_value);	if (p_variable==VAR_SPREAD)		update_gizmo();}
开发者ID:3miu,项目名称:godot,代码行数:8,


示例7: update_gizmo

void CollisionShape::set_disabled(bool p_disabled) {	disabled = p_disabled;	update_gizmo();	if (parent) {		parent->shape_owner_set_disabled(owner_id, p_disabled);	}}
开发者ID:Bonfi96,项目名称:godot,代码行数:8,


示例8: _build_polygon

void CollisionPolygon::set_polygon(const Vector<Point2> &p_polygon) {	polygon = p_polygon;	if (parent) {		_build_polygon();	}	update_configuration_warning();	update_gizmo();}
开发者ID:Paulloz,项目名称:godot,代码行数:9,


示例9: ERR_FAIL_INDEX

void Light::set_parameter(Parameter p_param, float p_value) {	ERR_FAIL_INDEX(p_param, PARAM_MAX);	vars[p_param]=p_value;	VisualServer::get_singleton()->light_set_param(light,(VisualServer::LightParam)p_param,p_value);	if (p_param==PARAM_RADIUS || p_param==PARAM_SPOT_ANGLE)		update_gizmo();	_change_notify(_light_param_names[p_param]);//	_change_notify(_param_names[p_param]);}
开发者ID:NosicLin,项目名称:godot,代码行数:10,


示例10: ERR_FAIL_INDEX

void SpatialPlayer::set_param( Param p_param, float p_value) {	ERR_FAIL_INDEX(p_param,PARAM_MAX);	params[p_param]=p_value;	if (p_param==PARAM_EMISSION_CONE_DEGREES) {		update_gizmo();	}	if (source_rid.is_valid())		SpatialSoundServer::get_singleton()->source_set_param(source_rid,(SpatialSoundServer::SourceParam)p_param,p_value);}
开发者ID:03050903,项目名称:godot,代码行数:11,


示例11: update_gizmo

void SpriteBase3D::_queue_update() {	if (pending_update)		return;	triangle_mesh.unref();	update_gizmo();	pending_update = true;	call_deferred(SceneStringNames::get_singleton()->_im_update);}
开发者ID:SaracenOne,项目名称:godot,代码行数:11,


示例12: update_gizmo

void CollisionShape::set_shape(const Ref<Shape> &p_shape) {	if (!shape.is_null())		shape->unregister_owner(this);	shape=p_shape;	if (!shape.is_null())		shape->register_owner(this);	update_gizmo();	if (updating_body)		_update_body();}
开发者ID:3miu,项目名称:godot,代码行数:11,


示例13: get_world

void VisibilityNotifier::set_aabb(const AABB& p_aabb){	if (aabb==p_aabb)		return;	aabb=p_aabb;	if (is_inside_world()) {		get_world()->_update_notifier(this,get_global_transform().xform(aabb));	}	_change_notify("aabb");	update_gizmo();}
开发者ID:03050903,项目名称:godot,代码行数:13,


示例14: update_gizmo

void Camera::set_perspective(float p_fovy_degrees, float p_z_near, float p_z_far) {	if (!force_change && fov==p_fovy_degrees && p_z_near==near && p_z_far==far && mode==PROJECTION_PERSPECTIVE)		return;	fov=p_fovy_degrees;	near=p_z_near;	far=p_z_far;	mode=PROJECTION_PERSPECTIVE;		VisualServer::get_singleton()->camera_set_perspective(camera,fov,near,far);	update_gizmo();	force_change=false;}
开发者ID:AwsomeGameEngine,项目名称:godot,代码行数:14,


示例15: ERR_FAIL_COND

// skeleton creation apivoid Skeleton::add_bone(const String& p_name) {	ERR_FAIL_COND( p_name=="" || p_name.find(":")!=-1 || p_name.find("/")!=-1 );	for (int i=0;i<bones.size();i++) {		ERR_FAIL_COND( bones[i].name=="p_name");	}	Bone b;	b.name=p_name;	bones.push_back(b);	rest_global_inverse_dirty=true;	_make_dirty();	update_gizmo();}
开发者ID:03050903,项目名称:godot,代码行数:18,


示例16: update_gizmo

void CollisionShape::set_shape(const Ref<Shape> &p_shape) {	if (!shape.is_null())		shape->unregister_owner(this);	shape = p_shape;	if (!shape.is_null())		shape->register_owner(this);	update_gizmo();	if (updating_body) {		_update_body();	} else if (can_update_body && update_shape_index >= 0 && is_inside_tree()) {		CollisionObject *co = get_parent()->cast_to<CollisionObject>();		if (co) {			co->set_shape(update_shape_index, p_shape);		}	}}
开发者ID:allkhor,项目名称:godot,代码行数:17,


示例17: _change_notify

void ReflectionProbe::set_origin_offset(const Vector3& p_extents){	origin_offset=p_extents;	for(int i=0;i<3;i++) {		if (extents[i]-0.01<ABS(origin_offset[i])) {			origin_offset[i]=SGN(origin_offset[i])*(extents[i]-0.01);		}	}	VS::get_singleton()->reflection_probe_set_extents(probe,extents);	VS::get_singleton()->reflection_probe_set_origin_offset(probe,origin_offset);	_change_notify("origin_offset");	update_gizmo();}
开发者ID:baekdahl,项目名称:godot,代码行数:17,


示例18: update_gizmo

void Path::_curve_changed() {	if (is_inside_tree() && Engine::get_singleton()->is_editor_hint())		update_gizmo();	if (is_inside_tree()) {		emit_signal("curve_changed");	}	// update the configuration warnings of all children of type OrientedPathFollows	if (is_inside_tree()) {		for (int i = 0; i < get_child_count(); i++) {			OrientedPathFollow *child = Object::cast_to<OrientedPathFollow>(get_child(i));			if (child) {				child->update_configuration_warning();			}		}	}}
开发者ID:SaracenOne,项目名称:godot,代码行数:18,


示例19: update_gizmo

void Path::_curve_changed() {	if (is_inside_tree() && Engine::get_singleton()->is_editor_hint())		update_gizmo();	if (is_inside_tree()) {		emit_signal("curve_changed");	}	// update the configuration warnings of all children of type PathFollow	// previously used for PathFollowOriented (now enforced orientation is done in PathFollow)	if (is_inside_tree()) {		for (int i = 0; i < get_child_count(); i++) {			PathFollow *child = Object::cast_to<PathFollow>(get_child(i));			if (child) {				child->update_configuration_warning();			}		}	}}
开发者ID:UgisBrekis,项目名称:godot,代码行数:19,


示例20: get_tree

void NavigationMeshInstance::set_enabled(bool p_enabled) {	if (enabled==p_enabled)		return;	enabled=p_enabled;	if (!is_inside_tree())		return;	if (!enabled) {		if (nav_id!=-1) {			navigation->navmesh_remove(nav_id);			nav_id=-1;		}	} else {		if (navigation) {			if (navmesh.is_valid()) {				nav_id = navigation->navmesh_create(navmesh,get_relative_transform(navigation),this);			}		}	}	if (debug_view) {		MeshInstance *dm=debug_view->cast_to<MeshInstance>();		if (is_enabled()) {			dm->set_material_override( get_tree()->get_debug_navigation_material() );		} else {			dm->set_material_override( get_tree()->get_debug_navigation_disabled_material() );		}	}	update_gizmo();}
开发者ID:baekdahl,项目名称:godot,代码行数:39,


示例21: get_relative_transform

void NavigationMeshInstance::set_navigation_mesh(const Ref<NavigationMesh> &p_navmesh) {	if (p_navmesh == navmesh)		return;	if (navigation && nav_id != -1) {		navigation->navmesh_remove(nav_id);		nav_id = -1;	}	navmesh = p_navmesh;	if (navigation && navmesh.is_valid() && enabled) {		nav_id = navigation->navmesh_create(navmesh, get_relative_transform(navigation), this);	}	if (debug_view && navmesh.is_valid()) {		debug_view->cast_to<MeshInstance>()->set_mesh(navmesh->get_debug_mesh());	}	update_gizmo();	update_configuration_warning();}
开发者ID:MattUV,项目名称:godot,代码行数:22,


示例22: update_gizmo

void CollisionShape::set_shape(const Ref<Shape> &p_shape) {	if (!shape.is_null()) {		shape->unregister_owner(this);		shape->disconnect("changed", this, "_shape_changed");	}	shape = p_shape;	if (!shape.is_null()) {		shape->register_owner(this);		shape->connect("changed", this, "_shape_changed");	}	update_gizmo();	if (parent) {		parent->shape_owner_clear_shapes(owner_id);		if (shape.is_valid()) {			parent->shape_owner_add_shape(owner_id, shape);		}	}	if (is_inside_tree())		_shape_changed();	update_configuration_warning();}
开发者ID:Valentactive,项目名称:godot,代码行数:23,


示例23: String

void MeshInstance::set_mesh(const Ref<Mesh> &p_mesh) {	if (mesh == p_mesh)		return;	if (mesh.is_valid()) {		mesh->disconnect(CoreStringNames::get_singleton()->changed, this, SceneStringNames::get_singleton()->_mesh_changed);		materials.clear();	}	mesh = p_mesh;	blend_shape_tracks.clear();	if (mesh.is_valid()) {		for (int i = 0; i < mesh->get_blend_shape_count(); i++) {			BlendShapeTrack mt;			mt.idx = i;			mt.value = 0;			blend_shape_tracks["blend_shapes/" + String(mesh->get_blend_shape_name(i))] = mt;		}		mesh->connect(CoreStringNames::get_singleton()->changed, this, SceneStringNames::get_singleton()->_mesh_changed);		materials.resize(mesh->get_surface_count());		set_base(mesh->get_rid());	} else {		set_base(RID());	}	update_gizmo();	_change_notify();}
开发者ID:UgisBrekis,项目名称:godot,代码行数:36,


示例24: update_gizmo

void VehicleWheel::set_suspension_rest_length(float p_length){	m_suspensionRestLength=p_length;	update_gizmo();}
开发者ID:03050903,项目名称:godot,代码行数:5,


示例25: update_gizmo

void SpringArm::set_length(float p_length) {	if (is_inside_tree() && (Engine::get_singleton()->is_editor_hint() || get_tree()->is_debugging_collisions_hint()))		update_gizmo();	spring_length = p_length;}
开发者ID:93i,项目名称:godot,代码行数:6,



注:本文中的update_gizmo函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ update_graph函数代码示例
C++ update_fpu_flags函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。