collision required for diablo like game?

Blitz3D Forums/Blitz3D Programming/collision required for diablo like game?

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.

L (length) is the distance between the character and the target.

(dx,dy,dz) is a vector describing the direction and distance from the character to the target. The magnitude of this vector is determined (L) and the vector is then divided by it; this "normalizes" the vector - its magnitude is now 1. The vector is multiplied by the character's speed (c\vel, which is named incorrectly and should be called c\speed!) then added to the character's position with TranslateEntity.

All this means that the character will move toward the target by a distance of c\vel.