Class: btSoftBodyHelpers
Ammo.btSoftBodyHelpers
Constructors
Methods
Constructors
constructor
• new btSoftBodyHelpers(): btSoftBodyHelpers
Returns
Defined in
Methods
CreateRope
▸ CreateRope(worldInfo
, from
, to
, res
, fixeds
): btSoftBody
Parameters
Name | Type |
---|---|
worldInfo | btSoftBodyWorldInfo |
from | btVector3 |
to | btVector3 |
res | number |
fixeds | number |
Returns
Defined in
CreatePatch
▸ CreatePatch(worldInfo
, corner00
, corner10
, corner01
, corner11
, resx
, resy
, fixeds
, gendiags
): btSoftBody
Parameters
Name | Type |
---|---|
worldInfo | btSoftBodyWorldInfo |
corner00 | btVector3 |
corner10 | btVector3 |
corner01 | btVector3 |
corner11 | btVector3 |
resx | number |
resy | number |
fixeds | number |
gendiags | boolean |
Returns
Defined in
CreatePatchUV
▸ CreatePatchUV(worldInfo
, corner00
, corner10
, corner01
, corner11
, resx
, resy
, fixeds
, gendiags
, tex_coords
): btSoftBody
Parameters
Name | Type |
---|---|
worldInfo | btSoftBodyWorldInfo |
corner00 | btVector3 |
corner10 | btVector3 |
corner01 | btVector3 |
corner11 | btVector3 |
resx | number |
resy | number |
fixeds | number |
gendiags | boolean |
tex_coords | readonly number [] |
Returns
Defined in
CreateEllipsoid
▸ CreateEllipsoid(worldInfo
, center
, radius
, res
): btSoftBody
Parameters
Name | Type |
---|---|
worldInfo | btSoftBodyWorldInfo |
center | btVector3 |
radius | btVector3 |
res | number |
Returns
Defined in
CreateFromTriMesh
▸ CreateFromTriMesh(worldInfo
, vertices
, triangles
, ntriangles
, randomizeConstraints
): btSoftBody
Parameters
Name | Type |
---|---|
worldInfo | btSoftBodyWorldInfo |
vertices | readonly number [] |
triangles | readonly number [] |
ntriangles | number |
randomizeConstraints | boolean |
Returns
Defined in
CreateFromConvexHull
▸ CreateFromConvexHull(worldInfo
, vertices
, nvertices
, randomizeConstraints
): btSoftBody
Parameters
Name | Type |
---|---|
worldInfo | btSoftBodyWorldInfo |
vertices | btVector3 |
nvertices | number |
randomizeConstraints | boolean |