Align object

Blitz3D Forums/Blitz3D Programming/Align object

You need to use AlignToVector ent,NX#,NY#,NZ#,axis

Ent is the entity to rotate.

You get nx etc by returning the collision normals. ie. CollisionNX.

Axis is 0,1,2 and represents X,Y,Z angle.