Class BulletJoint3D
The BulletJoint3D is a base class for all 3D joints implemented by Bullet.
Implements
Namespace: Evergine.Bullet
Assembly: Evergine.Bullet.dll
Syntax
public abstract class BulletJoint3D : IJoint3D
Constructors
BulletJoint3D(BulletPhysicManager3D)
Initializes a new instance of the BulletJoint3D class.
Declaration
public BulletJoint3D(BulletPhysicManager3D simulation)
Parameters
Type | Name | Description |
---|---|---|
BulletPhysicManager3D | simulation | The bullet simulation instance. |
Fields
simulation
The simulation object.
Declaration
protected BulletPhysicManager3D simulation
Field Value
Type | Description |
---|---|
BulletPhysicManager3D |
Properties
AppliedImpulse
Gets the applied impulse.
Declaration
public float AppliedImpulse { get; }
Property Value
Type | Description |
---|---|
float |
BodyA
Gets the first body attached to this joint.
Declaration
public IRigidBody3D BodyA { get; }
Property Value
Type | Description |
---|---|
IRigidBody3D |
BodyB
Gets the second body attached to this joint.
Declaration
public IRigidBody3D BodyB { get; }
Property Value
Type | Description |
---|---|
IRigidBody3D |
BreakingImpulseThreshold
Gets or sets the amount of force that a joint can take before break.
Declaration
public abstract float BreakingImpulseThreshold { get; set; }
Property Value
Type | Description |
---|---|
float |
DebugDrawSize
Gets or sets the debug draw size of the joint.
Declaration
public float DebugDrawSize { get; set; }
Property Value
Type | Description |
---|---|
float |
InternalJoint
Gets the Bullet internal joint.
Declaration
public abstract object InternalJoint { get; }
Property Value
Type | Description |
---|---|
object |
IsEnabled
Gets or sets a value indicating whether this joint is active.
Declaration
public bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
JointFeedback
Gets the Joint feedback.
Declaration
public IJointFeedback3D JointFeedback { get; }
Property Value
Type | Description |
---|---|
IJointFeedback3D |
NeedsFeedback
Gets or sets a value indicating whether the application needs to obtain feedback.
Declaration
public bool NeedsFeedback { get; set; }
Property Value
Type | Description |
---|---|
bool |
OverrideNumSolverIterations
Gets or sets the Override the number of solver iterations.
Declaration
public int OverrideNumSolverIterations { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
Dispose()
Dispose this collider 3D instance.
Declaration
public virtual void Dispose()
Events
OnBroke
Event fired when the joint is broken
Declaration
public event OnBrokeEventHandler OnBroke
Event Type
Type | Description |
---|---|
OnBrokeEventHandler |