Skip to content

Commit

Permalink
Addressed Matrix.transpose[d]() bug raised and solved by Anna Chiara …
Browse files Browse the repository at this point in the history
…Bellini, Arnaud Degroote, and Benoit Bolsee.
  • Loading branch information
fgb committed Aug 2, 2011
1 parent 4f911b6 commit 05f81a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.rst
Expand Up @@ -5,7 +5,7 @@ http://creativecommons.org/licenses/by/3.0/

by Fernando L. Garcia Bermudez

v.1.0
v.1.0.1

Description:
This is a simulation of a passive compliant joint set up in Blender via
Expand All @@ -14,4 +14,5 @@ Description:
damping constant (B_theta), and the resting position (theta_0) of the joint.

Usage:
Press "P" when the cursor is inside the 3D view to run the simulation.
To run the simulation, press "p" when the cursor is inside the 3D view or
select "Start Game Engine" from the Game menu.
2 changes: 1 addition & 1 deletion joint_controller.py
Expand Up @@ -8,7 +8,7 @@
base = scene.objects['Base']

# Mechanical feedback
rot = (beam.worldOrientation.transpose() * base.worldOrientation).to_euler()
rot = (beam.worldOrientation.transposed() * base.worldOrientation).to_euler()
T_theta = beam['K_theta'] * (rot[1] - radians(beam['theta_0'])) - \
beam['C_theta'] * beam.getAngularVelocity(True)[1]
beam.applyTorque([0.0, T_theta, 0.0], True)
Binary file modified passive_compliant_joint.blend
Binary file not shown.

0 comments on commit 05f81a3

Please sign in to comment.