L B Posted September 10, 2010 Posted September 10, 2010 If b.Position.Y is higher than a.Position.Y, the orientation of a becomes the opposite (±180) from what it is supposed to be pointing. What am I doing wrong? Is this normal behaviour? Quote
AndyGFX Posted September 11, 2010 Posted September 11, 2010 When you want create effect which looks like "LookAt", use align to forward direction [Z axis] - PointEntity(a, b, 3,1,0) Quote [HW] C2D Q6600, 4GB RAM, NV8800GTX, Vista Ultimate x64 [sW] Blide Plus, BlitzMax, Delphi, C++, 3DWS 5.53, Leadwerks 2.xx
L B Posted September 11, 2010 Author Posted September 11, 2010 I actually found the problem. It's in the documentation. Apparently, 2 is for the Z axis, not the Y one. I found out using 0 works perfectly, although it isn't even a documented axis. Bug report here Josh? Quote
macklebee Posted September 11, 2010 Posted September 11, 2010 I am seeing PointEntity work just like described in the wiki for models and meshes... but for mesh primitives, like CreateCube(), and phy bodies, it doesn't seem to matter which axis you use in the PointEntity command; it always gives the same final rotation. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
macklebee Posted September 12, 2010 Posted September 12, 2010 Actually PointEntity() is all messed up... doesn't work correctly for models, meshes, primitive meshes, primitive phybodies... there is definitely something wrong with the command... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
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.