[Bf-committers] Re: GameObject Python Distance function
erwin at erwincoumans.com
erwin at erwincoumans.com
Tue Jan 11 17:47:33 CET 2005
Wouldn't it be better to add a new Math/Utility module ?
It wouldn't require that much extra, and it is easier to extend with other
useful things. Also just passing simpel types makes it more general purpose
, passing objects limits the usage: you can't get the distance between to
points (for example the distance from a hitpoint and another point).
Erwin
Toni Alatalo writes:
>> 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?
>
> ~Toni
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
More information about the Bf-committers
mailing list