rescue in <top (required)>'
from /home/spooner/.rvm/gems/ruby-1.9.2-p0/gems/chipmunk-5.3.4.0/lib/chipmunk.rb:7:in
<top (required)>'require'
from /home/spooner/RubymineProjects/wrath/lib/wrath/game.rb:17:in
<top (required)>'require_relative'
from /home/spooner/RubymineProjects/wrath/lib/wrath.rb:1:in
<top (required)>'require_relative'
from bin/wrath.rbw:26:in
<main>'C:\>ruby -v
ruby 1.9.2p136 (2010-12-25) [i386-mingw32]
C:\>gem -v
1.8.3
C:\>gem lis chip
*** LOCAL GEMS ***
chipmunk (5.3.4.0 x86-mingw32)
C:\>gem upd
Updating installed gems
Updating chipmunk
ERROR: While executing gem ... (ArgumentError)
undefined class/module YAML::PrivateType
> i686-apple-darwin10-gcc-4.2.1: ./vendor/chipmunk-5.3.4/src/chipmunk.o: No such file or directory
> i686-apple-darwin10-gcc-4.2.1: ./vendor/chipmunk-5.3.4/src/cpArbiter.o: No such file or directory
> i686-apple-darwin10-gcc-4.2.1: ./vendor/chipmunk-5.3.4/src/cpArray.o: No such file or directory
ext/chipmunk
(= current directory), not ext/chipmunk/vendor/chipmunk-5.3.4
.
> I wasn't sure why #group wasn't also implemented as a symbol
> group: Shapes in the same non-zero group do not generate collisions. Useful when creating an object out of many shapes that you don't want to self collide. Defaults to 0;
0
here would mean that the Ruby wrapper would need to do some behind-the-scenes conversion. Assuming you want nil
to be the "normal" group, you'd either have to make 0
and nil
both set the internal value to 0
(strange and unexpected behavior for Ruby, and lossy) or risk breaking compatibility with existing programs (0
might be set explicitly). I would lean towards the second as more-correct behavior, but~
collision_type
, which is potentially useful because you could have a set of standard collision_type objects that determine additional collision behavior. On the C side, the collision type is just set to the object's id. Doing the same for group
might be useful in some cases, so why not make it possible?
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill