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: