getClusterRotationSlow
Definition
-- @/=[C]:-1
function getClusterRotationSlow(...)
Callers
@/lua/ge/server/commands.lua
local vehRot = quat(playerVehicle:getClusterRotationSlow(playerVehicle:getRefNodeId()))
local diffRot = vehRot:inversed() * camRot
@/lua/ge/spawn.lua
local nodePositions = {}
local vehRot = quat(veh:getClusterRotationSlow(veh:getRefNodeId()))
@/lua/ge/extensions/core/cameraModes/orbit.lua
-- rotate targetPos around bbCenter by the inverse of the vehicle rotation
local vehRot = quat(0,0,1,0) * quat(veh:getClusterRotationSlow(veh:getRefNodeId()))
local localTargetPos = vehRot:inversed() * (targetPos - bbCenter)
@/lua/ge/extensions/tech/techCore.lua
elseif reset and rot == nil then
local vehRot = quat(veh:getClusterRotationSlow(veh:getRefNodeId()))
veh:setPositionRotation(request['pos'][1], request['pos'][2], request['pos'][3], vehRot.x, vehRot.y, vehRot.z, vehRot.w)
elseif not reset and rot ~= nil then
local vehRot = quat(veh:getClusterRotationSlow(veh:getRefNodeId()))
local diffRot = vehRot:inversed() * rot