getObjectDirectionVector
Definition
-- @/=[C]:-1
function getObjectDirectionVector(...)
Callers
@/lua/vehicle/extensions/tech/platooning.lua
-- iii) in front of the player vehicle.
local fwdB = obj:getObjectDirectionVector(k)
fwdB:normalize()
@/lua/vehicle/ai.lua
local function getObjectBoundingBox(id)
local x = obj:getObjectDirectionVector(id)
local z = obj:getObjectDirectionVectorUp(id)
-- Get bounding box direction vectors
twt.OBBinRange[i+2] = obj:getObjectDirectionVector(id) -- x
twt.OBBinRange[i+4] = obj:getObjectDirectionVectorUp(id) -- z
obj.debugDrawProxy:drawSphere(0.2, vPos + v.vel * dt, color(0, 255, 0, 255))
--dump(obj:getObjectDirectionVector(k))
--dump(obj:getObjectDirectionVectorUp(k))
@/lua/vehicle/controller/tech/idealRADARSensor.lua
-- iii) in front of the player vehicle.
local fwdB = obj:getObjectDirectionVector(k)
fwdB:normalize()
@/lua/vehicle/extensions/tech/ACC.lua
-- iii) in front of the player vehicle.
local fwdB = obj:getObjectDirectionVector(k)
fwdB:normalize()