[Bf-committers] Proposal: Mathutils types default in the BGE

José Ignacio jose.cyborg at gmail.com
Wed Jun 24 03:44:45 CEST 2009

On Tue, Jun 23, 2009 at 7:51 PM, Campbell Barton<ideasman42 at gmail.com> wrote:
> (snip)
> Options are....
> (snip)
> - Campbell

i give my +1 to the mathutils option, though it'd be nicer to wrap
moto, it would be duplicated work and mathutis is already mature and
well tested..
also, in most of my use cases (and most of the ones i have seen),
replacing a list for a mathutils vector/matrix doesn't break anything,
since most tend to just index them like this:
op = own.position
tp = target.position
e = [tp[0] - op[0], tp[1] - op[1], tp[2] - op[2]]
own.applyImpulse(op, [e[0]*5, e[1]*5, e[2]*5])
Still, if there is code that relies heavily on those values being
lists, wouldnt it be possible to override the mathutils wrapping with
a runtime option? (i guess not but it's worth asking ;))...


More information about the Bf-committers mailing list