PoineEntity
Blitz3D Forums/Blitz3D Programming/PoineEntity
| ||
is there some way to make it so that pointentity doesnt just 'snap' towards the other entity. is it possible to make it rotate at a set rate towards the other entity? thnx.. btw, the title is supposed to be 'pointentity' not 'poineentity' :P |
| ||
You could use the [rate] component of the function but that's not a consistent speed. Alternatively .. this should work ( just typed this into the post so untested ).. Function EntityPoint( Source , Target, MaxYawSpeed# , MaxPitchSpeed# ) DY# = deltayaw( Source, Target ) if abs( DY ) > MaxYawSpeed DY# = sgn( DY ) * MaxYawSpeed DP# = deltapitch( Source, Target ) if abs( DP ) > MaxPitchSpeed DP = sgn( DP ) * MaxPitchSpeed turnentity Source, DP , DY , 0 end function |
| ||
thnx |