Skip to content

Commit

Permalink
Open new slider constraint functions (#395)
Browse files Browse the repository at this point in the history
Useful functions used to motorize the slider constraint.

As a reference, the bullet forklift demo use them here:
https://github.com/bulletphysics/bullet3/blob/master/examples/ForkLift/ForkLiftDemo.cpp#L803-L805

Thanks to these functions I expect to introduce motorized prismatic joints into BabylonJS: https://doc.babylonjs.com/divingDeeper/physics/joints#motors
  • Loading branch information
fabienrohrer authored Mar 25, 2022
1 parent 325d13a commit 7a57497
Show file tree
Hide file tree
Showing 5 changed files with 1,500 additions and 1,490 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,9 @@ This offers many advantages (keeping its native environment clean, portability,
To do this, you just have to install Docker and run:
```bash
$ docker-compose build # to create the Docker image
$ docker-compose up # to create the Docker container and build ammo.js
$ docker-compose build # to create the Docker image
$ docker-compose up # to create the Docker container and build ammo.js
$ docker-compose run builder # to build again the ammojs targets after any modification
```
If you want to add arguments to cmake, you have to edit the `docker-compose.yml` file.
Expand Down
4 changes: 4 additions & 0 deletions ammo.idl
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,10 @@ interface btSliderConstraint {
void setUpperLinLimit(float upperLimit);
void setLowerAngLimit(float lowerAngLimit);
void setUpperAngLimit(float upperAngLimit);

void setPoweredLinMotor(boolean onOff);
void setMaxLinMotorForce(float maxLinMotorForce);
void setTargetLinMotorVelocity(float targetLinMotorVelocity);
};
btSliderConstraint implements btTypedConstraint;

Expand Down
1,197 changes: 600 additions & 597 deletions builds/ammo.js

Large diffs are not rendered by default.

Loading

0 comments on commit 7a57497

Please sign in to comment.