Point3F
Definition
-- @/lua/common/mathlib.lua:49
function vec3(x, y, z)
if rawequal(y, nil) then
if rawequal(x, nil) then
return newLuaVec3xyz(0, 0, 0)
else
if rawequal(x.xyz, nil) then
return newLuaVec3xyz(x.x or x[1], x.y or x[2], x.z or x[3])
else
return newLuaVec3xyz(x:xyz())
end
end
else
return newLuaVec3xyz(x, y, z or 0)
end
end
Callers
@/lua/ge/extensions/tech/techCore.lua
end
-- proc.scale = Point3F(1, 1, 1)
sobj:setPosition(vec3(request['pos'][1], request['pos'][2], request['pos'][3]))
-- sobj:setPosition(Point3F(request['pos'][1], request['pos'][2], request['pos'][3]))
end
@/gameplay/missionTypes/scatterPickup/customNodes/scatterCollectNode.lua
if d <= sqrRadius then
Engine.Audio.playOnce('AudioGui','event:>UI>Missions>Trash_Collect', {position = Point3F(state.pos.x, state.pos.y, state.pos.z), volume = state.color/10})
self.collectedInFrame = self.collectedInFrame + 1
@/lua/ge/extensions/editor/api/dynamicDecals.lua
local offsetM = MatrixF(true)
offsetM:setPosition(newPosition - oldTransform:mulP3F(Point3F(0, 0, 0)))
--local newTransform = oldTransform:copy():mul(offsetM)
@/lua/ge/server/server.lua
local mat = MatrixF(true)
local pos = Point3F(x, y, z)
mat:setPosition(pos)