Changeset 122 for trunk/src/game/Object.cpp
- Timestamp:
- 11/19/08 13:38:14 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Object.cpp
r120 r122 1538 1538 if (angle_offset_ratio < 0.05) angle_offset_ratio = 0.05; 1539 1539 // angle to face `obj` to `this`plus a random angle offset(from -90 degree to 90 degree)*angle_offset_ratio using distance from distance2dMin to distance2dMax includes size of `obj` 1540 GetNearPoint(obj,x,y,z,object_size,distance2dMin+(distance2dMax-distance2dMin)*rand_norm(), GetAngle( obj ) + (M_PI _2 - M_PI * rand_norm()) * angle_offset_ratio);1541 } 1540 GetNearPoint(obj,x,y,z,object_size,distance2dMin+(distance2dMax-distance2dMin)*rand_norm(), GetAngle( obj ) + (M_PI/2 - M_PI * rand_norm()) * angle_offset_ratio); 1541 }