YouGroove Posted March 19, 2013 Posted March 19, 2013 I have two 3D position points. I would need to align some entity to the vector made of the two 3D points. I mean aligned in the same axe. Does anyone know how to program that ? (in Lua) ? Quote Stop toying and make games
YouGroove Posted March 19, 2013 Author Posted March 19, 2013 i don't know it works like that automatically, perhaps to avoid people to forget the post I thaught you was giving me the solution of vector alignment. Quote Stop toying and make games
Andy Gilbert Posted March 19, 2013 Posted March 19, 2013 Again youGroove this is a standard 3d vector issue, a simple google "Vector from 2 3d points" (ill even link it for you here) will provide many many threads and websites that describe how to do this and it is all related to vector math which in turn can all be done in leadwerks, you dont need another leadwerks user to explain it. Although what i think your after is another leadwerks user to script it for you, which really isnt the best solution. Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d
YouGroove Posted March 19, 2013 Author Posted March 19, 2013 Thanks Andy. Again i searched for Vector and Lua in Google some good half hour without good results. Perhaps i should only find a general math forumal and try to write it in Lua using good Lua Math same functions ? I need it, more , caus i have a complete projectile script manageùent that runs well , but it don't follow weapon alignment also No so easy : http://www.physicsfo...ad.php?t=416005 http://www.glbasic.com/forum/index.php?topic=4614.0 I'm not good at Math and vectors. I htink we will need some Lua Math library doing function really needed like : TurnToObject AligntToVector(point3D1, point3D2) etc ... I can't imagine beginner programmers having to go maths or 3D artists Quote Stop toying and make games
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.