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