From: <yx...@us...> - 2012-01-25 18:03:52
|
Revision: 289 http://simspark.svn.sourceforge.net/simspark/?rev=289&view=rev Author: yxu Date: 2012-01-25 18:03:43 +0000 (Wed, 25 Jan 2012) Log Message: ----------- enable joint feed back in script Modified Paths: -------------- trunk/spark/lib/oxygen/physicsserver/joint_c.cpp Modified: trunk/spark/lib/oxygen/physicsserver/joint_c.cpp =================================================================== --- trunk/spark/lib/oxygen/physicsserver/joint_c.cpp 2012-01-25 18:03:13 UTC (rev 288) +++ trunk/spark/lib/oxygen/physicsserver/joint_c.cpp 2012-01-25 18:03:43 UTC (rev 289) @@ -545,6 +545,21 @@ return true; } +FUNCTION(Joint,enableFeedback) +{ + bool inSet; + if ( + (in.GetSize() != 1) || + (! in.GetValue(in[0],inSet)) + ) + { + return false; + } + + obj->EnableFeedback(inSet); + return true; +} + void CLASS(Joint)::DefineClass() { DEFINE_BASECLASS(oxygen/PhysicsObject); @@ -579,5 +594,6 @@ DEFINE_FUNCTION(getMaxMotorForce); DEFINE_FUNCTION(setJointMaxSpeed1); DEFINE_FUNCTION(setJointMaxSpeed2); + DEFINE_FUNCTION(enableFeedback); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |