Setting the angular factor on my 3d object was not working. Then I realize that I had left out the RubyFloat::internal method call to convert the VALUE passed into a c++ float. Without the conversion, the RubyGameObject was passing a value of 1 to the set_angular_factor method. Now the 3d object's position is affected by physics but not its rotation, which is good for character control.
RubyMethod set_angular_factor(VALUE self, VALUE angular_factor)
{
guard(GameObject.set_angular_factor);
CWorldObject *obj = internal(self);
obj->set_angular_factor(RubyFloat::internal(angular_factor)); //line that had the problem
return Qnil;
unguard
}
The following are free (MIT license) mailing labels and letter templates for jasperreports that you can download and use in jasperserver and/or ireport: Update 3/15/2011 : I moved the Mail templates zip file here . Please consider making a small donation if the templates are of help to you, Thank you! If you need more information on how to use those templates please leave a comment in the blog.
Comments