panda3d.bullet.BulletSphericalConstraint

from panda3d.bullet import BulletSphericalConstraint
class BulletSphericalConstraint

Bases: BulletConstraint

A constraint between two rigid bodies, each with a pivot point. The pivot points are described in the body’s local space. The constraint limits movement of the two rigid bodies in such a way that the pivot points match in global space. The spherical constraint can be seen as a “ball and socket” joint.

Inheritance diagram

Inheritance diagram of BulletSphericalConstraint

__init__(node_a: BulletRigidBodyNode, node_b: BulletRigidBodyNode, pivot_a: LPoint3, pivot_b: LPoint3) → None
__init__(node_a: BulletRigidBodyNode, pivot_a: LPoint3) → None
static getClassType() → TypeHandle
Return type

TypeHandle

getPivotInA() → LPoint3
Return type

LPoint3

getPivotInB() → LPoint3
Return type

LPoint3

property pivot_a

Getter Setter

Pivots

Pivots

Return type

LPoint3

property pivot_b

Getter Setter

Return type

LPoint3

setPivotA(pivot_a: LPoint3) → None

Pivots

setPivotB(pivot_b: LPoint3) → None