Aligning a shadow to a mesh

Blitz3D Forums/Blitz3D Programming/Aligning a shadow to a mesh

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Once you've rotated the shadow to the same as the mesh just use a single align to vector on the y axis but not on -ve normals.

AlignToVector shadow, PickedNX#(), PickedNY#(),PickedNZ#(),2,1


By using both x and z axis' you're effectively re-doing the rotateentity.