SMFXBreakageParams

C++
struct SMFXBreakageParams {
  enum EBreakageRequestFlags {
    eBRF_Matrix = BIT(0),
    eBRF_HitPos = BIT(1),
    eBRF_HitImpulse = BIT(2),
    eBRF_Velocity = BIT(3),
    eBRF_ExplosionImpulse = BIT(4),
    eBRF_Mass = BIT(5),
    eBFR_Entity = BIT(6)
  };
public:
  uint32 m_flags;
public:
  Matrix34 m_worldTM;
public:
  Vec3 m_vHitPos;
public:
  Vec3 m_vHitImpulse;
public:
  Vec3 m_vVelocity;
public:
  float m_fExplosionImpulse;
public:
  float m_fMass;
public:
  EntityId m_nEntityId;
};
File

IMaterialEffects.h

SMFXBreakageParams::EBreakageRequestFlags Enumeration
C++
enum EBreakageRequestFlags {
  eBRF_Matrix = BIT(0),
  eBRF_HitPos = BIT(1),
  eBRF_HitImpulse = BIT(2),
  eBRF_Velocity = BIT(3),
  eBRF_ExplosionImpulse = BIT(4),
  eBRF_Mass = BIT(5),
  eBFR_Entity = BIT(6)
};
File

IMaterialEffects.h

SMFXBreakageParams::m_fExplosionImpulse Data Member
C++
float m_fExplosionImpulse;
SMFXBreakageParams::m_flags Data Member
C++
uint32 m_flags;
SMFXBreakageParams::m_fMass Data Member
C++
float m_fMass;
SMFXBreakageParams::m_nEntityId Data Member
C++
EntityId m_nEntityId;
SMFXBreakageParams::m_vHitImpulse Data Member
C++
Vec3 m_vHitImpulse;
SMFXBreakageParams::m_vHitPos Data Member
C++
Vec3 m_vHitPos;
SMFXBreakageParams::m_vVelocity Data Member
C++
Vec3 m_vVelocity;
SMFXBreakageParams::m_worldTM Data Member
C++
Matrix34 m_worldTM;
SMFXBreakageParams::CheckFlag Method
C++
bool CheckFlag(EBreakageRequestFlags flag) const;
Description

Checking for flags

SMFXBreakageParams::ClearFlag Method
C++
void ClearFlag(EBreakageRequestFlags flag);
SMFXBreakageParams::GetEntityId Method
C++
EntityId GetEntityId() const;
SMFXBreakageParams::GetExplosionImpulse Method
C++
float GetExplosionImpulse() const;
SMFXBreakageParams::GetHitImpulse Method
C++
const Vec3& GetHitImpulse() const;
SMFXBreakageParams::GetHitPos Method
C++
const Vec3& GetHitPos() const;
SMFXBreakageParams::GetMass Method
C++
float GetMass() const;
SMFXBreakageParams::GetMatrix Method
C++
const Matrix34& GetMatrix() const;
SMFXBreakageParams::GetVelocity Method
C++
const Vec3& GetVelocity() const;
SMFXBreakageParams::SetEntityId Method
C++
void SetEntityId(EntityId id);
Description

Entity

SMFXBreakageParams::SetExplosionImpulse Method
C++
void SetExplosionImpulse(float fExplosionImpulse);
Description

Explosion Impulse

SMFXBreakageParams::SetFlag Method
C++
void SetFlag(EBreakageRequestFlags flag);
SMFXBreakageParams::SetHitImpulse Method
C++
void SetHitImpulse(const Vec3& vHitImpulse);
Description

HitImpulse

SMFXBreakageParams::SetHitPos Method
C++
void SetHitPos(const Vec3& vHitPos);
Description

HitPos

SMFXBreakageParams::SetMass Method
C++
void SetMass(float fMass);
Description

Mass

SMFXBreakageParams::SetMatrix Method
C++
void SetMatrix(const Matrix34& worldTM);
Description

Matrix

SMFXBreakageParams::SetVelocity Method
C++
void SetVelocity(const Vec3& vVelocity);
Description

Velocity

SMFXBreakageParams::SMFXBreakageParams Constructor
C++
SMFXBreakageParams();