胸部中心点 ChestPoint
数据流向
数据由服务器同步给客户端,客户端无法同步给服务器
属性默认值0,0,0,属性区间[-100,100]
描述
ChestPoint是决定角色配饰
和工具
与角色
胸部相连的挂接零件
的原点的坐标的属性。
默认情况下,新建角色的ChestPoint默认为(0,0,0),玩家可以根据实际需要,在身体挂点
对象的右侧属性栏修改ChestPoint的坐标参数。
实例
实例1 代码获取ChestPoint
创建一个角色,在角色下添加服务器脚本,获取角色的身体挂点对象,获取胸部中心点参数并打印
local avatar=script.Parent
local chestPoint=avatar.身体挂点.ChestPoint
print(tostring(chestPoint))
实例2 代码修改ChestPoint
创建一个角色,在角色下添加服务器脚本,获取角色的身体挂点对象,获取胸部中心点参数并打印,然后修改参数并打印
local avatar=script.Parent
local chestPoint=avatar.身体挂点.ChestPoint
print(tostring(chestPoint))
avatar.身体挂点.ChestPoint=Vector3.New(1,1,1)
chestPoint=avatar.身体挂点.ChestPoint
print(tostring(chestPoint))
文档更新时间: 2020-07-10 18:14 作者:刘征