Jump to content
Leadwerks Community

Recommended Posts

Posted

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?

Posted

When you want create effect which looks like "LookAt", use align to forward direction [Z axis] - PointEntity(a, b, 3,1,0)

[HW] C2D Q6600, 4GB RAM, NV8800GTX, Vista Ultimate x64

[sW] Blide Plus, BlitzMax, Delphi, C++, 3DWS 5.53, Leadwerks 2.xx

 

76561197970156808.pngAndyGFX.png

Posted

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?

Posted

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.

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Posted

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

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

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