mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-15 00:37:09 +00:00
use random rotation when spawning players' peds
This commit is contained in:
parent
9dc4f03c9f
commit
fda86887f7
1 changed files with 3 additions and 1 deletions
|
@ -78,7 +78,9 @@ namespace SanAndreasUnity.Behaviours
|
|||
return false;
|
||||
}
|
||||
|
||||
transformData = new TransformDataStruct(focusPos.position + Random.insideUnitCircle.ToVector3XZ() * 15f);
|
||||
transformData = new TransformDataStruct(
|
||||
focusPos.position + Random.insideUnitCircle.ToVector3XZ() * 15f,
|
||||
Quaternion.Euler(0f, Random.Range(0f, 360f), 0f));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue