Search the Community
Showing results for tags 'vector'.
-
Hi guys, I'm working on my Spiderman script and was wondering if anyone knew how to rotate an object to always look at a position. Been trying to make the player lean with the web but no luck at all.
-
How to compute Velocity vector of Vehicle turret relative to Global World? I did some calculations and this is what I have been able to reach: local lrotX, lrotY = getVehicleTurretPosition(occupiedVehicle) -- Compute local 3D vector from bearing and elevation math local tVx,tVy,tVz = math.cos(lrotX) * math.cos(lrotY), math.sin(lrotX) * math.cos(lrotY), math.sin(lrotY) Maybe I need to calculate the difference of rotation angles turret and my vehicle, and then to compute Vector by formula above?
- 18 replies