当前位置:网站首页>UE4 用spline画正圆
UE4 用spline画正圆
2022-07-02 16:45:00 【道之所在】
已知变量: R: 圆的半径
PointNum:点的数量(包含初始点)
StartPoint:第一个点的位置
SingleArcLength:点与点之间的弧长
CreateCurrentPointIndex:正在创建的当前点的索引
1.先设置第一个点的位置,因为以根组件为圆心,所以只设置X为R
2.计算出圆周长后,通过点的个数,计算出每个点之间的弧长
3.通过弧长和第一个点计算出需要创建点的位置
4.直接套公式
效果:
运用的方程式:
x=√(a²+b²)·sin﹛[c/√(a²+b²)]-arcsin[a/√(a²+b²)]﹜
y=√(a²+b²)·cos﹛[c/√(a²+b²)]-arcsin[a/√(a²+b²)]﹜
点越多越正,一般点数量>=5时,圆就开始正了
边栏推荐
- 微信核酸检测预约小程序系统毕业设计毕设(1)开发概要
- Leetcode 面试题 17.01. 不用加号的加法
- 人人工势场法
- Web聊天工具
- [Oracle final review] addition, deletion and modification of tablespaces, tables, constraints, indexes and views
- Customize a loading instruction
- 使用NPOI导出Excel文件
- A4988与42步进电机
- 如何开启IDEA的Run Dashboard功能
- Embedded development board ~ description
猜你喜欢

自定义一个loading指令

Remember to use ternary expressions when switching transformations

1288_FreeRTOS中vTaskResume()接口以及中断安全版本接口实现分析

Customize a loading instruction

Wechat nucleic acid detection appointment applet system graduation design completion (1) development outline

微信小程序视频分享平台系统毕业设计毕设(6)开题答辩PPT

RDK simulation experiment

【愚公系列】2022年07月 Go教学课程 001-Go语言前提简介

再放宽!这些应届生,可直接落户上海

SteamOS 3.3 Beta 发布,Steam Deck 中文键盘终于来了
随机推荐
In Linux, MySQL sets the job task to start automatically
Editor Editor Extension add button and logo in scene view
人人工势场法
em120.gige. h
1288_ Implementation analysis of vtask resume() interface and interrupt Security version interface in FreeRTOS
MySQL -- basic operation of database
iframe嵌套详解
【Golang | gRPC】使用gRPC实现简单远程调用
Microsoft LDAP 配置页中输入有效的用户名及密码,microsoft ldap 配置页中输入有效的用户名
Wechat nucleic acid detection appointment applet system graduation design completion (1) development outline
微信小程序视频分享平台系统毕业设计毕设(4)开题报告
vimium映射键
Typescript
ESP32-C3入门教程 问题篇⑪——esp-tls: create_ssl_handle failed, tls_io_instance->options.trusted_certs null
利用DOSBox运行汇编超详细步骤「建议收藏」
国金证券是国企吗?在国金证券开户资金安全吗?
Wechat nucleic acid detection and appointment applet system graduation design (3) background function
Wechat applet video sharing platform system graduation design completion (5) assignment
Deep understanding of ThreadLocal
巴比特 | 元宇宙每日必读:一千块就能买一个虚拟主播?这是小企业的直播福音还是在“割韭菜”?...