Mykoplazma 24 Posted March 10, 2017 Share Posted March 10, 2017 D3D.TraceLine( x, y, z, rx1, ry1, rz1, Bit.Or( INTERSECT_TERRAIN ) or something like that possible? I need to know how exactly far I'm from the ground to make good gathering profile ( stable height = more speed ) Link to comment https://wrobot.eu/forums/topic/5340-check-distance-from-the-ground-texture/ Share on other sites More sharing options...
Droidz 2738 Posted March 10, 2017 Share Posted March 10, 2017 Hello, with code like Memory.WowMemory.LockFrame(); Vector3 found = Vector3.Zero; for (float i = 1; i < 150; i+= 0.5f) { var to = new Vector3(ObjectManager.Me.Position.X, ObjectManager.Me.Position.Y, ObjectManager.Me.Position.Z - i); bool obstacleFound = wManager.Wow.Helpers.TraceLine.TraceLineGo(ObjectManager.Me.Position, to, CGWorldFrameHitFlags.HitTestGroundAndStructures); if (obstacleFound) { found = new Vector3(to); break; } } Memory.WowMemory.UnlockFrame(); Pudge 1 Link to comment https://wrobot.eu/forums/topic/5340-check-distance-from-the-ground-texture/#findComment-24596 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now