Skip to content

Class: btSoftBodyHelpers

Ammo.btSoftBodyHelpers

Constructors

Methods

Constructors

constructor

new btSoftBodyHelpers(): btSoftBodyHelpers

Returns

btSoftBodyHelpers

Defined in

packages/ammo/ammo.d.ts:1078

Methods

CreateRope

CreateRope(worldInfo, from, to, res, fixeds): btSoftBody

Parameters

NameType
worldInfobtSoftBodyWorldInfo
frombtVector3
tobtVector3
resnumber
fixedsnumber

Returns

btSoftBody

Defined in

packages/ammo/ammo.d.ts:1079


CreatePatch

CreatePatch(worldInfo, corner00, corner10, corner01, corner11, resx, resy, fixeds, gendiags): btSoftBody

Parameters

NameType
worldInfobtSoftBodyWorldInfo
corner00btVector3
corner10btVector3
corner01btVector3
corner11btVector3
resxnumber
resynumber
fixedsnumber
gendiagsboolean

Returns

btSoftBody

Defined in

packages/ammo/ammo.d.ts:1080


CreatePatchUV

CreatePatchUV(worldInfo, corner00, corner10, corner01, corner11, resx, resy, fixeds, gendiags, tex_coords): btSoftBody

Parameters

NameType
worldInfobtSoftBodyWorldInfo
corner00btVector3
corner10btVector3
corner01btVector3
corner11btVector3
resxnumber
resynumber
fixedsnumber
gendiagsboolean
tex_coordsreadonly number[]

Returns

btSoftBody

Defined in

packages/ammo/ammo.d.ts:1081


CreateEllipsoid

CreateEllipsoid(worldInfo, center, radius, res): btSoftBody

Parameters

NameType
worldInfobtSoftBodyWorldInfo
centerbtVector3
radiusbtVector3
resnumber

Returns

btSoftBody

Defined in

packages/ammo/ammo.d.ts:1082


CreateFromTriMesh

CreateFromTriMesh(worldInfo, vertices, triangles, ntriangles, randomizeConstraints): btSoftBody

Parameters

NameType
worldInfobtSoftBodyWorldInfo
verticesreadonly number[]
trianglesreadonly number[]
ntrianglesnumber
randomizeConstraintsboolean

Returns

btSoftBody

Defined in

packages/ammo/ammo.d.ts:1083


CreateFromConvexHull

CreateFromConvexHull(worldInfo, vertices, nvertices, randomizeConstraints): btSoftBody

Parameters

NameType
worldInfobtSoftBodyWorldInfo
verticesbtVector3
nverticesnumber
randomizeConstraintsboolean

Returns

btSoftBody

Defined in

packages/ammo/ammo.d.ts:1084

Released under the MIT License