[Bf-committers] Re: GameObject Python Distance function

Toni Alatalo antont at kyperjokki.fi
Tue Jan 11 12:13:56 CET 2005

> From: "charlie c" <snailrose at bresnan.net>
>  print Obj1.getDistance(Obj2.getPosition())

nice - one comment regarding the interface: it's logical in one way to 
have the obj1 in one end and the position of obj2 in the other -- it also 
allows giving other positions than those of objects. however, at least 
i've found it nice when you can just give objects to such calls.

for example, in Soya3d you can do obj1.look_at(obj2) (that rotates obj1).
so would it be good to add support for obj1.getDistance(obj2) here too?


More information about the Bf-committers mailing list