MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / IntersectsItself

Method IntersectsItself

Source/Engine/Level/Actors/StaticModel.cpp:426–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426bool StaticModel::IntersectsItself(const Ray& ray, Real& distance, Vector3& normal)
427{
428 bool result = false;
429 if (Model != nullptr && Model->IsLoaded())
430 {
431 Mesh* mesh;
432 Matrix world;
433 GetLocalToWorldMatrix(world);
434 result = Model->Intersects(ray, world, distance, normal, &mesh);
435 }
436 return result;
437}
438
439void StaticModel::Serialize(SerializeStream& stream, const void* otherObj)
440{

Callers

nothing calls this directly

Calls 2

IsLoadedMethod · 0.45
IntersectsMethod · 0.45

Tested by

no test coverage detected