Skip to content

Commit

Permalink
Fix directional billboard behavior by spawn rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
ueshita committed Feb 26, 2024
1 parent 14d36b7 commit 2b0ba9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dev/Cpp/Effekseer/Effekseer/Effekseer.Instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,8 @@ void Instance::FirstUpdate()
if (m_pEffectNode->GenerationLocation.EffectsRotation)
{
prevPosition_ = SIMD::Vec3f::Transform(prevPosition_, m_GenerationLocation);
globalDirection_ = SIMD::Vec3f::Transform(globalDirection_, m_GenerationLocation.Get3x3SubMatrix());
globalDirection_ = SIMD::Vec3f::Transform(globalDirection_, m_ParentMatrix);
}
else
{
Expand Down

0 comments on commit 2b0ba9b

Please sign in to comment.