Jump to content

Recommended Posts

Posted

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) ?

Stop toying and make games

Posted

i don't know it works like that automatically, perhaps to avoid people to forget the post laugh.png

I thaught you was giving me the solution of vector alignment.

Stop toying and make games

Posted

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

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

Posted

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 sad.png

 

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 laugh.png

Stop toying and make games

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...