yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #10376
[Branch ~yade-pkg/yade/git-trunk] Rev 3799: Minor change of setFromTwoVectors in utils.py.
------------------------------------------------------------
revno: 3799
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Thu 2014-01-09 13:39:24 +0100
message:
Minor change of setFromTwoVectors in utils.py.
Due to last changes in minieigen setFromTwoVectors does not return
the quaternion. Use it as a set-method.
modified:
py/utils.py
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'py/utils.py'
--- py/utils.py 2013-10-15 17:11:37 +0000
+++ py/utils.py 2014-01-09 12:39:24 +0000
@@ -254,7 +254,7 @@
_commonBodySetup(b,V,Vector3(geomInert,geomInert,geomInert),material,pos=begin,resetState=False,dynamic=dynamic,fixed=fixed)
b.mask=mask
b.bound=Aabb(color=[0,1,0])
- b.state.ori=b.state.ori.setFromTwoVectors(Vector3(0.,0.,1.),segment)
+ b.state.ori.setFromTwoVectors(Vector3(0.,0.,1.),segment)
if (end == begin): b.state.ori = Quaternion((1,0,0),0)
return b