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

Method IntersectsItself

Source/Engine/Level/Actors/AnimatedModel.cpp:1229–1240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1227#endif
1228
1229bool AnimatedModel::IntersectsItself(const Ray& ray, Real& distance, Vector3& normal)
1230{
1231 bool result = false;
1232
1233 if (SkinnedModel != nullptr && SkinnedModel->IsLoaded())
1234 {
1235 SkinnedMesh* mesh;
1236 result |= SkinnedModel->Intersects(ray, _transform, distance, normal, &mesh);
1237 }
1238
1239 return result;
1240}
1241
1242void AnimatedModel::Serialize(SerializeStream& stream, const void* otherObj)
1243{

Callers

nothing calls this directly

Calls 2

IsLoadedMethod · 0.45
IntersectsMethod · 0.45

Tested by

no test coverage detected