VE Lua Documentation

Press F to search!

getDirectionVectorXYZ

Definition


-- @/=[C]:-1
function getDirectionVectorXYZ(...)

Callers

@/lua/ge/extensions/gameplay/crawl/utils.lua

  tmp1:set(veh:getDirectionVectorXYZ())
  tmp2:set(veh:getVelocityXYZ())
@/lua/vehicle/input.lua
    -- determine if we're oversteering and therefore we should not be providing any understeer assistance
    frontVec:set(obj:getDirectionVectorXYZ())
    local margin = sign(st) == sign(oversteer) and -1 or 0.15
@/lua/ge/map.lua
    obj.vel:set(object:getVelocityXYZ())
    obj.dirVec:set(object:getDirectionVectorXYZ())
    obj.dirVecUp:set(object:getDirectionVectorUpXYZ())
@/lua/ge/extensions/gameplay/statisticModules/watchJturn.lua
  -- vpos:set(v:getPositionXYZ())
  vdir:set(v:getDirectionVectorXYZ())
@/lua/ge/extensions/ui/apps/minimap/vehicles.lua
      pos:set(otherVeh:getPositionXYZ())
      fwd:set(otherVeh:getDirectionVectorXYZ())
      fwd.z = 0
@/lua/ge/extensions/gameplay/sites/parkingSpot.lua
    else
      vehicleDir:set(veh:getDirectionVectorXYZ())
      parkingSpotDir:set(yVector)
@/lua/ge/extensions/gameplay/statisticModules/watchRollover.lua
  vup:set(v:getDirectionVectorUpXYZ())
  vdir:set(v:getDirectionVectorXYZ())
  velocity:set(v:getVelocityXYZ())
@/lua/ge/extensions/gameplay/parking.lua
  bbCenter:set(be:getObjectOOBBCenterXYZ(vehId))
  vehDirection:set(obj:getDirectionVectorXYZ())
  bbHalfExtents:set(be:getObjectOOBBHalfExtentsXYZ(vehId))
@/lua/ge/extensions/c2/panelPlugins/vehicleManager.lua
  local pos = veh:getPosition()
  local dir = vec3(veh:getDirectionVectorXYZ())
  local up = vec3(veh:getDirectionVectorUpXYZ())
@/lua/vehicle/ai.lua
  ego.prevDirVec:set(ego.dirVec)
  ego.dirVec:set(obj:getDirectionVectorXYZ())
  ego.upVec:set(obj:getDirectionVectorUpXYZ())
@/lua/ge/extensions/gameplay/race/race.lua
        vehVel:set(veh:getVelocityXYZ())
        vehDir:set(veh:getDirectionVectorXYZ())
        local dir = sign2(vehDir:dot(vehVel)) -- negative if driving in reverse
  vehPos:set(vehicle:getPositionXYZ())
  vehDir:set(vehicle:getDirectionVectorXYZ())
  vehDirUp:set(vehicle:getDirectionVectorUpXYZ())
@/lua/ge/extensions/gameplay/drag/utils.lua
  racer.vehPos:set(racer.vehObj:getPositionXYZ())
  racer.vehDirectionVector:set(racer.vehObj:getDirectionVectorXYZ())
  racer.vehDirectionVectorUp:set(racer.vehObj:getDirectionVectorUpXYZ())