|
Post by ejlnmusic on Aug 3, 2018 12:33:32 GMT
Hi guys/girls,
anyone have an idea where hitdamage particle position is derived from? Or is there a way to create dummy spawn position for hitdamage particles?
Any help much appreciated, Alen
|
|
|
Post by Invector on Aug 3, 2018 14:06:43 GMT
It's instantiate at the hit position:
var damageDirection = damage.hitPosition - new Vector3(transform.position.x, damage.hitPosition.y, transform.position.z); var hitrotation = damageDirection != Vector3.zero ? Quaternion.LookRotation(damageDirection) : transform.rotation;
|
|
|
Post by ejlnmusic on Aug 3, 2018 15:05:11 GMT
Thanks,
A
|
|