载入中...
搜索中...
未找到
JoltExplosion.cpp
浏览该文件的文档.
39eve::Result<int> WorldBackend::explode(float x, float y, float z, float radius, float falloff, float strength,
55 if (!body->active || !body->owner || body->api().GetMotionType(body->id) != JPH::EMotionType::Dynamic) continue;
72 distance > radius && falloff > 0 ? std::clamp((radius + falloff - distance) / falloff, 0.f, 1.f) : 1.f;
73 const float magnitude = strength * projectedArea(*shape, rotation.Conjugated() * direction) * scale *
87 if (std::none_of(before.begin(), before.end(), [&](const Before& entry) { return entry.body == body; }))
eve::Result< int > explode(float x, float y, float z, float radius, float falloff, float impulsePerArea, int maskBits) override
explode; uses the class ownership, thread and failure contract.
Definition JoltExplosion.cpp:39
Definition JoltBody.cpp:7
JPH::RVec3 closestConvexPoint(const ShapeState &shape, JPH::RVec3Arg target)
Returns a convex leaf's world closest point; shape/body are borrowed only during this idle-thread cal...
Definition JoltGeometryQueries.cpp:12
@ ConvexHull
@ Capsule
@ InvalidArgument
@ StaleHandle