Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

you can see the bones now

  • Loading branch information...
commit 5c3dc45064b85acd60205d3a39cce3ee40804fb4 1 parent 68c9bd0
@jwoertink authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/sample6.rb
View
9 lib/sample6.rb
@@ -10,6 +10,8 @@
java_import "com.jme3.math.ColorRGBA"
java_import "com.jme3.math.Vector3f"
java_import "com.jme3.scene.Node"
+java_import "com.jme3.scene.debug.SkeletonDebugger"
+java_import "com.jme3.material.Material"
class Sample6 < SimpleApplication
include AnimEventListener
@@ -33,6 +35,13 @@ def simpleInitApp
control.add_listener(self)
self.channel = control.create_channel
channel.anim = "stand"
+
+ skeleton_debug = SkeletonDebugger.new("skeleton", control.skeleton)
+ mat = Material.new(asset_manager, "Common/MatDefs/Misc/Unshaded.j3md")
+ mat.set_color("Color", ColorRGBA::Green)
+ mat.additional_render_state.depth_test = false
+ skeleton_debug.material = mat
+ @player.attach_child(skeleton_debug)
init_keys!
end
Please sign in to comment.
Something went wrong with that request. Please try again.