add rope support
This commit is contained in:
parent
ccc77490ea
commit
ff0ac094cf
7 changed files with 91 additions and 19 deletions
|
@ -3,8 +3,19 @@
|
|||
const Copula = require('./copula.js');
|
||||
|
||||
class Rope extends Copula {
|
||||
constructor(p1, p2) {
|
||||
super();
|
||||
constructor(b1, b2) {
|
||||
super(b1, b2);
|
||||
this.type = 'rope';
|
||||
this._length = 0;
|
||||
}
|
||||
|
||||
get length() {
|
||||
return this._length;
|
||||
}
|
||||
|
||||
set length(len) {
|
||||
this.length = len;
|
||||
this.b2joint.SetLength(len);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue