コード例 #1
0
ファイル: AcCarSound.cs プロジェクト: windygu/actools
        public static void Set3DAttributes(this AcCarPlayer player, string path, Vector3 forward, Vector3 position, Vector3 up, Vector3 velocity)
        {
            var forwardSound  = forward.ToSoundVector();
            var positionSound = position.ToSoundVector();
            var upSound       = up.ToSoundVector();
            var velocitySound = velocity.ToSoundVector();

            player.Set3DAttributes(path, forwardSound, positionSound, upSound, velocitySound);
        }
コード例 #2
0
ファイル: AcCarSound.cs プロジェクト: windygu/actools
        public static void Set3DAttributes(this AcCarPlayer player, string[] path, Vector3 forward, Vector3 position, Vector3 up, Vector3 velocity)
        {
            var forwardSound  = forward.ToSoundVector();
            var positionSound = position.ToSoundVector();
            var upSound       = up.ToSoundVector();
            var velocitySound = velocity.ToSoundVector();

            for (var i = 0; i < path.Length; i++)
            {
                var p = path[i];
                player.Set3DAttributes(p, forwardSound, positionSound, upSound, velocitySound);
            }
        }
コード例 #3
0
ファイル: AcCarSound.cs プロジェクト: windygu/actools
 public void UpdateCarPosition(Vector3 forward, Vector3 position, Vector3 up, Vector3 velocity)
 {
     _player.Set3DAttributes(_prefix + "door", forward, position, up, velocity);
 }