mirror of https://github.com/AxioDL/metaforce.git
CBouncyGrenade: Pass bounding box to CPhysicsActor
This commit is contained in:
parent
deba91bfc0
commit
6e5c32abfd
|
@ -13,8 +13,8 @@ CBouncyGrenade::CBouncyGrenade(TUniqueId uid, std::string_view name, const CEnti
|
||||||
const zeus::CTransform& xf, CModelData&& mData, const CActorParameters& actParams,
|
const zeus::CTransform& xf, CModelData&& mData, const CActorParameters& actParams,
|
||||||
TUniqueId parentId, const SBouncyGrenadeData& data, float velocity,
|
TUniqueId parentId, const SBouncyGrenadeData& data, float velocity,
|
||||||
float explodePlayerDistance)
|
float explodePlayerDistance)
|
||||||
: CPhysicsActor(uid, true, name, info, xf, std::move(mData), {EMaterialTypes::Projectile, EMaterialTypes::Solid}, {},
|
: CPhysicsActor(uid, true, name, info, xf, std::move(mData), {EMaterialTypes::Projectile, EMaterialTypes::Solid},
|
||||||
SMoverData(data.GetUnkStruct().GetMass()), actParams, 0.3f, 0.1f)
|
mData.GetBounds(), SMoverData(data.GetUnkStruct().GetMass()), actParams, 0.3f, 0.1f)
|
||||||
, x258_data(data)
|
, x258_data(data)
|
||||||
, x294_numBounces(data.GetNumBounces())
|
, x294_numBounces(data.GetNumBounces())
|
||||||
, x298_parentId(parentId)
|
, x298_parentId(parentId)
|
||||||
|
|
Loading…
Reference in New Issue