BindAttachment

继承自

描述

给节点添加绑点,一节点挂在绑点上,会相对于其父节点一起改变

属性

string
绑点名字
绑点坐标
绑点欧拉角

代码示例

--创建模型
local model = SandboxNode.new('Model', game.WorkSpace)
model.ModelId = string.format("sandboxAsset://entity/%s/body.omod","100041")
model.Position = Vector3.new(500, 700, 150)
--给模型设置绑点
local attachment= SandboxNode.new('BindAttachment', model)
attachment.BoneName = 'attachment'
attachment.Position = Vector3.new(100, 0, 100)
attachment.Euler = Vector3.new(2, 1, 1)
Last Updated: