Pointentity Problem

Blitz3D Forums/Blitz3D Programming/Pointentity Problem

Yes, but we're talking about the XY plane rather than the XZ plane so you can't use deltayaw.

This does the same thing but on the XY plane ..

Function POINT( Source , Target, Rate#=1.0 )

	TFormPoint 0,0,0 , Target, Source
        DeltaRoll# = vectoryaw( tformedx(), 0 , tformedy() )

        if abs( DeltaRoll ) > Rate 
            turnentity Source, 0,0,DeltaRoll * Rate
        else
            turnentity Source, 0,0,DeltaRoll
        endif

End Function