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

removeAction does not exist in the latest build #101

Closed
DVLP opened this issue Feb 21, 2015 · 16 comments
Closed

removeAction does not exist in the latest build #101

DVLP opened this issue Feb 21, 2015 · 16 comments

Comments

@DVLP
Copy link
Contributor

DVLP commented Feb 21, 2015

in previous ammo there was addVehicle which was now replaced by addAction
removeVehicle was also removed, but removeAction is missing

@lo-th
Copy link

lo-th commented Nov 17, 2015

yes need to add world.removeAction( car );
Ammo.destroy( car ); don't work

@DVLP
Copy link
Contributor Author

DVLP commented Nov 17, 2015

Exactly. Here's my fork with that included and some extras too i.e. applyLocalTorque
https://github.com/DVLP/ammo.js

@kripken
Copy link
Owner

kripken commented Nov 17, 2015

Could we have a pull request with those additions to the main repo?

@lo-th
Copy link

lo-th commented Nov 17, 2015

mm your version don't include last add with terrainshape
i'm on big demo to see all ammo possibility with live editor.

for vehicle i use on each wheels
vehicle.applyEngineForce( engine, i );
vehicle.setBrake( breaking, i )

@DVLP
Copy link
Contributor Author

DVLP commented Nov 17, 2015

@kripken Yes, but what about "applyLocalTorque" or "applyCentralLocalForce". These are my new functions which I've added directly to bullet so they might disappear when updating bullet. How to solve this properly? These are must-haves when programming helicopters and airplanes (yaw, pitch roll), but not natively available in bullet.

@lo-th
Copy link

lo-th commented Nov 17, 2015

maybe use quaterion transform for that but is a interesting demo to test
my demo is here http://lo-th.github.io/Ammo.lab/

tomorrow i add terrain / car
next collision / ghost / character / joint ...

@DVLP
Copy link
Contributor Author

DVLP commented Nov 17, 2015

Nice demo, 1000 objects are still working good. This guy added ammo to three.js editor, but I don't see the source for it: https://www.youtube.com/watch?v=Y4ygcI6HSW4

@kripken
Copy link
Owner

kripken commented Nov 17, 2015

@DVLP: perhaps they could go to upstream Bullet? Are they generally useful or specific to ammo somehow?

@lo-th: nice!

@lo-th
Copy link

lo-th commented Nov 17, 2015

yes is with Physijs, is not so hard to do with three.js editor
i try to make the most simple worker for that .
terrain work very well and i can make moving terrain :)

here my old flash demo that use bullet to
http://perso.numericable.fr/chamaslot/RaceSimulator.html

now i can do the same on javascript thank's Kripken

@DVLP
Copy link
Contributor Author

DVLP commented Nov 17, 2015

@kripken pull request created. These functions are used to set forces locally and are not only specific to ammo.js. For some reason bullet does not have them and every time you want to set local force you have to make calculations and apply global forces. These are much more intuitive: applyLocalTorque is for setting for yaw pitch and roll forces. applyLocalCentralForce is to set for local X, Y and Z forces.
@lo-th Yeah, life's good. This racer is pretty cool after pressing "start race". Have you ported it to JS?

@lo-th
Copy link

lo-th commented Nov 17, 2015

not yet
but is provided in the advanced demos of my ammo.lab

@lo-th
Copy link

lo-th commented Nov 18, 2015

here the terrain/car preview
http://lo-th.github.io/Ammo.lab/#terrain
many options and control come next

@lo-th
Copy link

lo-th commented Nov 19, 2015

New add is great thank's
now i have all function for cool demo

@DVLP
Copy link
Contributor Author

DVLP commented Nov 19, 2015

You're welcome. On what new cool demo are you working on?

@lo-th
Copy link

lo-th commented Nov 19, 2015

i add next demos to
http://lo-th.github.io/Ammo.lab/
i have to complete worker and make better 3d look
(click on demo name on top left for switch demo)

@DVLP
Copy link
Contributor Author

DVLP commented Nov 20, 2015

I like this editor. Fast and nice design. I'd change the dot to an arrow in upper left corner. Now it's not obvious that there's a dropdown there, but looks like a title.
removeAction problem is now fixed and closing.

@DVLP DVLP closed this as completed Nov 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants