-
Notifications
You must be signed in to change notification settings - Fork 22
PhysicsAPI
Li, Xizhi edited this page Jun 26, 2017
·
2 revisions
local shapeFac = ParaScene.CreateObject("ShapeFactory", ...)
shapeFac:SetField("objType", "XXXShape")
shapeFac:SetField("origin", {})
shapeFac:SetField("size", {})
shapeFac:CallField("Create")
local newObj = shapeFac:GetChild(0)
shapeFac:SetField("origin", {})
shapeFac:SetField("size", {})
shapeFac:CallField("Create")
local newObj = shapeFac:GetChild("LastObject")