Skip to content

Commit

Permalink
Propagating lossy scale of the visuals used by the rigid body emitter.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmalg committed Jun 2, 2021
1 parent 9ee8996 commit c23df33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions AGXUnity/RigidBodyEmitter.cs
Expand Up @@ -520,6 +520,7 @@ public void CreateEmittedVisuals()
visual.transform.SetParent( m_visualRoot.transform );
visual.transform.position = instance.getPosition().ToHandedVector3();
visual.transform.rotation = instance.getRotation().ToHandedQuaternion();
visual.transform.localScale = resource.transform.lossyScale;

m_instanceDataTable.Add( instance.get(), new EmitData()
{
Expand Down

0 comments on commit c23df33

Please sign in to comment.