panda3d.bullet.BulletSoftBodyNode

class BulletSoftBodyNode

Bases: BulletBodyNode

Inheritance diagram

Inheritance diagram of BulletSoftBodyNode

property aabb
Return type

BoundingBox

addForce(force: LVector3) → None
addForce(force: LVector3, node: int) → None
addVelocity(velocity: LVector3) → None
addVelocity(velocity: LVector3, node: int) → None
appendAnchor(node: int, body: BulletRigidBodyNode, pivot: LVector3, disable: bool) → None
appendAnchor(node: int, body: BulletRigidBodyNode, disable: bool) → None

Anchors

appendAngularJoint(body: BulletBodyNode, axis: LVector3, erp: float, cfm: float, split: float, control: BulletSoftBodyControl) → None
appendLinearJoint(body: BulletBodyNode, pos: LPoint3, erp: float, cfm: float, split: float) → None
appendLinearJoint(body: BulletBodyNode, cluster: int, erp: float, cfm: float, split: float) → None
appendMaterial() → BulletSoftBodyMaterial
Return type

BulletSoftBodyMaterial

property cfg
Return type

BulletSoftBodyConfig

clusterCom(cluster: int) → LVecBase3
Return type

LVecBase3

generateBendingConstraints(distance: int, material: BulletSoftBodyMaterial) → None
generateClusters(k: int, maxiterations: int) → None

Cluster

getAabb() → BoundingBox
Return type

BoundingBox

getCfg() → BulletSoftBodyConfig
Return type

BulletSoftBodyConfig

static getClassType() → TypeHandle
Return type

TypeHandle

getClosestNodeIndex(point: LVecBase3, local: bool) → int

Returns the index of the node which is closest to the given point. The distance between each node and the given point is computed in world space if local=false, and in local space if local=true.

getMass(node: int) → float
getMaterial(idx: int) → BulletSoftBodyMaterial
Return type

BulletSoftBodyMaterial

getMaterials() → list
getNode(idx: int) → BulletSoftBodyNodeElement
Return type

BulletSoftBodyNodeElement

getNodes() → list
getNumClusters() → int
getNumMaterials() → int

Materials

getNumNodes() → int
getTotalMass() → float
getVolume() → float
getWindVelocity() → LVector3
Return type

LVector3

getWorldInfo() → BulletSoftBodyWorldInfo
Return type

BulletSoftBodyWorldInfo

linkCurve(curve: NurbsCurveEvaluator) → None
linkGeom(geom: Geom) → None

Rendering

linkSurface(surface: NurbsSurfaceEvaluator) → None
static makeEllipsoid(info: BulletSoftBodyWorldInfo, center: LPoint3, radius: LVecBase3, res: int) → BulletSoftBodyNode
Return type

BulletSoftBodyNode

static makePatch(info: BulletSoftBodyWorldInfo, corner00: LPoint3, corner10: LPoint3, corner01: LPoint3, corner11: LPoint3, resx: int, resy: int, fixeds: int, gendiags: bool) → BulletSoftBodyNode
Return type

BulletSoftBodyNode

static makeRope(info: BulletSoftBodyWorldInfo, from: LPoint3, to: LPoint3, res: int, fixeds: int) → BulletSoftBodyNode

Factory

Return type

BulletSoftBodyNode

static makeTetMesh(info: BulletSoftBodyWorldInfo, points: PTA_LVecBase3, indices: PTA_int, tetralinks: bool) → BulletSoftBodyNode
Return type

BulletSoftBodyNode

static makeTetMesh(info: BulletSoftBodyWorldInfo, ele: str, face: str, node: str) → BulletSoftBodyNode
Return type

BulletSoftBodyNode

static makeTriMesh(info: BulletSoftBodyWorldInfo, geom: Geom, randomizeConstraints: bool) → BulletSoftBodyNode
Return type

BulletSoftBodyNode

static makeTriMesh(info: BulletSoftBodyWorldInfo, points: PTA_LVecBase3, indices: PTA_int, randomizeConstraints: bool) → BulletSoftBodyNode
Return type

BulletSoftBodyNode

property materials
Return type

Sequence[BulletSoftBodyMaterial]

property nodes
Return type

Sequence[BulletSoftBodyNodeElement]

property num_clusters
Return type

int

randomizeConstraints() → None
releaseCluster(index: int) → None
releaseClusters() → None
setMass(node: int, mass: float) → None
setPose(bvolume: bool, bframe: bool) → None
setTotalDensity(density: float) → None
setTotalMass(mass: float, fromfaces: bool) → None
setVelocity(velocity: LVector3) → None
setVolumeDensity(density: float) → None
setVolumeMass(mass: float) → None

Mass, volume, density

setWindVelocity(velocity: LVector3) → None
unlinkCurve() → None
unlinkGeom() → None
unlinkSurface() → None
property wind_velocity

Getter Setter

Return type

LVector3

property world_info
Return type

BulletSoftBodyWorldInfo