Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for 1.2.2 #48

Merged
merged 20 commits into from
Jan 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/js_externs.txt
/js_exports.txt
/js_imports.txt
/compiler.jar

.DS_Store
*.swp
.project
.idea/
.vscode/
npm-debug.log
.jshintrc
.vs/
13 changes: 13 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "haxe",
"args": "active configuration",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 saharan
Copyright (c) 2020 saharan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
35 changes: 20 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
OimoPhysics
OimoPhysics 1.2.2
---

A lightweight 3D physics engine.

![License: MIT](https://img.shields.io/badge/License-MIT-green.svg) [![npm version](https://badge.fury.io/js/oimophysics.svg)](https://badge.fury.io/js/oimophysics)

## [API Documentation](https://saharan.github.io/OimoPhysics/)

## Demos
<a href="http://el-ement.com/etc/oimo/demos/"><img src="http://el-ement.com/etc/oimo/demos/thumbnail.png"></a>
<a href="https://el-ement.com/etc/oimo/demos/"><img src="https://el-ement.com/etc/oimo/demos/thumbnail.png"></a>
* Press `E` or `Q` to change demos
* Click or tap text to control
* Click or tap texts on the left to control

## Features
## Platforms
* Written in Haxe
* Exported as JavaScript (see [bin/js/](./bin/js))
* Public classes and methods will be exposed through `windwow.OIMO`.
* Public classes and methods are exposed through `window.OIMO`.
* e.g. `new OIMO.Vec3(1, 2, 3)` to create an instance of `Vec3` class.
* Rigid body motion types
* Exported as JavaScript (module) with TypeScript Declaration (see [package.json](./package.json) and [bin/js_modules](./bin/js_modules))

## Features
* Rigid body with motion types
* Dynamic
* Static
* Kinematic
Expand All @@ -35,7 +40,7 @@ A lightweight 3D physics engine.
* Prismatic (a.k.a. slider)
* Universal
* Ragdoll (a.k.a. cone twist, character)
* Generic (a.k.a. generic 6DoF) *WIP, not applied to bin/js yet*
* Generic (a.k.a. 6-DoF joint)
* Breakable joints
* Constraint solvers
* Direct block MLCP solver
Expand All @@ -46,15 +51,15 @@ A lightweight 3D physics engine.
* Collision filterings
* Collision queries
* AABB query
* ray casting
* convex casting
* Ray casting
* Convex casting

## Compile JavaScript demos in Haxe
* Use Haxe 4.0.0 or later
* main class: `demo.js.DemoJS`
* Try enabling compiler options if fails
* `-D analyzer`
* `-D eval-stack`
## Compilations
Haxe 4.2.0 or later is required. (recommended: Haxe 4.2.4 or later)
* Use `build-js.hxml` to compile for JavaScript library.
* Use `build-js-demos.hxml` to compile JavaScript demos.
* Use `build-doc.hxml` to generate API documentation. [dox](https://github.com/HaxeFoundation/dox) is required.
* Use `build-js-ts.hxml` to compile for JavaScript (modules) library with TypeScript declarations. Requires `hxtsdgen` library. Check comments in that file.

## License
The MIT License
Expand Down
52,423 changes: 24,320 additions & 28,103 deletions bin/js/OimoPhysics.js

Large diffs are not rendered by default.

840 changes: 839 additions & 1 deletion bin/js/OimoPhysics.min.js

Large diffs are not rendered by default.

270 changes: 0 additions & 270 deletions bin/js/externs.js

This file was deleted.

Loading