Code Monkey home page Code Monkey logo

jiglibjs's Introduction

prerelease - coming soon
This release is mainly due to the great foundation the JigLibFlash guys have put in place, big thanks you from me and I'm sure everyone else.

http://www.jiglibflash.com/blog/

jiglibjs's People

Contributors

jimjafar avatar supereggbert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jiglibjs's Issues

Fixed Rotation?

Is there a way to prevent a body from rotating? This is mostly useful for solid player objects (think zelda in Ocarina of Time).

Problems combining Three.js, CanvasRenderer and JiglibJS

Hey,

I'm pretty new at WebGL and so I started learning by reading example code of three.js. Finally I didn't only want to watch my created cube rotate, but to behave like a fully realistic cube and that's how I got to use JigLibJS so far.

But I'm experiencing problems by integrating JigbLib into my three.js code.
I gathered information and snippets from some examples but still the cube I created just don't want to fall down to the ground I created.
Maybe I'm messing something up with the updateMatrixWorld-Method?

The code can be found here: http://pastebin.com/9tDrz7dd

degrees/radians conversion

Hi,

I've noticed that the Matrix3D class (jiglib/maths/matrix3d.js) possibly has a bug in the appendRotation() and angleAxis() functions. The conversion from degrees to angles is done with angle=angle/(pi_2), whereas it should be angle=angle_pi/180 (or angle_2_pi/360). I am also wondering why in the appendRotation() function you negate the axis of rotation (Vector3DUtil.negate(axis)).
If, for example, I set the rotation angles [10, 20, 30] of an object and I apply inverse transformations to the orientation matrix I get the rotation angles [350, 340, 330](with degrees/radians conversion fixed). If I comment the axis negation part I get the right values ([10, 20, 30]).

Regards,
Gabriel

No rotation on collision

Hi, I am creating a bunch of JBoxes and then setting them high above a JPlane. When they fall, they collide with each other and the plane, but they do not rotate. I don't understand why there is no rotation on impact?

I have pasted my code here: http://pastebin.com/gFabjbU6

friction between sphere and plane

Hi,

I've made a little scenario consisting of a sphere and a plane (with normal (0, 1, 0) and distance 0, so the xOz plane). The system has a gravity of [0, -9, 0]. The ball is positioned slightly above (in the positive Y direction) the plane with an initial velocity on the X-axis. There is a friction coefficient set for both the ball and the plane. I would expect the ball to 'fall' onto the plane and continue its movement in parallel with the X-axis, but slowly decreasing its velocity because of the friction.
I am unable to obtain this behavior using the friction parameter. No matter what I set for the friction parameters, the system behaves as if there were no friction at all.
I am curious why this happens.

I've pasted the code here: http://pastebin.com/x8sTYRaD

Regards,
Gabriel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.