在Java中壁球和拉伸球动画

时间:2015-02-22 18:20:38

标签: animation java-3d stretch squash

所以我是Java编程的新手,我试图在3D中找到一个包含精确物理的Ball动画示例代码。 这是来源: http://www.java2s.com/Code/Java/3D/AnimationandInteractionaBouncingBall.htm

这是错误:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no J3D in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at javax.media.j3d.MasterControl$22.run(MasterControl.java:889)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:886)
at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:229)
at BouncingBall.<init>(BouncingBall.java:81)
at BouncingBall.main(BouncingBall.java:140)

1 个答案:

答案 0 :(得分:0)

缺少本机库,我担心您使用过时版本的Java 3D,请关注these instructions