#include <P2SliderJoint.hpp>
◆ P2SliderJoint()
  
  | 
        
          | SIV3D_NODISCARD_CXX20 s3d::P2SliderJoint::P2SliderJoint | ( |  | ) |  |  | default | 
 
 
◆ draw()
      
        
          | void s3d::P2SliderJoint::draw | ( | const ColorF & | color = Palette::White | ) | const | 
      
 
ジョイントをデバッグ表示します。 
- Parameters
- 
  
  
 
 
◆ getAnchorPosA()
      
        
          | Vec2 s3d::P2SliderJoint::getAnchorPosA | ( |  | ) | const | 
      
 
BodyA のアンカーポイントをワールド座標で返します。 
- Returns
- BodyA のアンカーポイントのワールド座標 
 
 
◆ getAnchorPosB()
      
        
          | Vec2 s3d::P2SliderJoint::getAnchorPosB | ( |  | ) | const | 
      
 
BodyB のアンカーポイントをワールド座標で返します。 
- Returns
- BodyB のアンカーポイントのワールド座標 
 
 
◆ getCurrentMotorForce()
      
        
          | double s3d::P2SliderJoint::getCurrentMotorForce | ( | double | timeStep | ) | const | 
      
 
現在モーターが発揮している力の強さを返します。 
- Parameters
- 
  
  
- Returns
- 現在モーターが発揮している力の強さ (N) 
 
 
◆ getJointSpeed()
      
        
          | double s3d::P2SliderJoint::getJointSpeed | ( |  | ) | const | 
      
 
ジョイントの移動の速さを返します。 
- Returns
- ジョイントの移動の速さ 
 
 
◆ getJointTranslation()
      
        
          | double s3d::P2SliderJoint::getJointTranslation | ( |  | ) | const | 
      
 
ジョイントの移動量を返します。 
- Returns
- ジョイントの移動量 
 
 
◆ getLimitEnabled()
      
        
          | bool s3d::P2SliderJoint::getLimitEnabled | ( |  | ) | const | 
      
 
ジョイントの長さ制限が有効かを返します。 
- Returns
- ジョイントの長さ制限が有効な場合 true, それ以外の場合は false 
 
 
◆ getLimits()
      
        
          | std::pair<double, double> s3d::P2SliderJoint::getLimits | ( |  | ) | const | 
      
 
現在設定されているジョイントの長さの下限と上限を返します。 
- Returns
- 現在設定されているジョイントの長さの下限と上限 
 
 
◆ getMaxMotorForce()
      
        
          | double s3d::P2SliderJoint::getMaxMotorForce | ( |  | ) | const | 
      
 
モーターが発揮できる最大の力の強さを返します。 
- Returns
- モーターが発揮できる最大の力の強さ (N) 
 
 
◆ getMotorEnabled()
      
        
          | bool s3d::P2SliderJoint::getMotorEnabled | ( |  | ) | const | 
      
 
モーターが ON であるかを返します。 
- Returns
- モーターが ON である場合 true, それ以外の場合は false 
 
 
◆ getMotorSpeed()
      
        
          | double s3d::P2SliderJoint::getMotorSpeed | ( |  | ) | const | 
      
 
現在設定されているモーターの速さを返します。 
- Returns
- 現在設定されているモーターの速さ 
 
 
◆ getReactionForce()
      
        
          | Vec2 s3d::P2SliderJoint::getReactionForce | ( | double | timeStep | ) | const | 
      
 
ジョイントの反力 (N) を返します。 
- Parameters
- 
  
  
- Returns
- ジョイントの反力 (N) 
 
 
◆ getReactionTorque()
      
        
          | double s3d::P2SliderJoint::getReactionTorque | ( | double | timeStep | ) | const | 
      
 
ジョイントの反力トルク (N・m) を返します。 
- Parameters
- 
  
  
- Returns
- ジョイントの反力トルク (N・m) 
 
 
 
◆ release()
      
        
          | void s3d::P2SliderJoint::release | ( |  | ) |  | 
      
 
 
◆ setLimitEnabled()
      
        
          | P2SliderJoint& s3d::P2SliderJoint::setLimitEnabled | ( | bool | enabled | ) |  | 
      
 
ジョイントの長さ制限の有効無効を設定します。 
- Parameters
- 
  
    | enabled | 有効にする場合 true, それ以外の場合は false |  
 
- Returns
- *this 
 
 
◆ setLimits()
      
        
          | P2SliderJoint& s3d::P2SliderJoint::setLimits | ( | double | lower, | 
        
          |  |  | double | upper | 
        
          |  | ) |  |  | 
      
 
ジョイントの長さの下限と上限を設定します。 
- Parameters
- 
  
  
- Returns
- *this 
 
 
◆ setMaxMotorForce()
      
        
          | P2SliderJoint& s3d::P2SliderJoint::setMaxMotorForce | ( | double | force | ) |  | 
      
 
モーターが発揮できる最大の力の強さを設定します。 
- Parameters
- 
  
  
- Returns
- *this 
 
 
◆ setMotorEnabled()
      
        
          | P2SliderJoint& s3d::P2SliderJoint::setMotorEnabled | ( | bool | enabled | ) |  | 
      
 
モーターの ON / OFF を設定します。 
- Parameters
- 
  
    | enabled | モーターを ON にする場合 true, OFF にする場合は false |  
 
- Returns
- *this 
 
 
◆ setMotorSpeed()
モーターの速さを設定します。 
- Parameters
- 
  
  
- Returns
- *this 
 
 
The documentation for this class was generated from the following file: