This site uses cookies! Learn More

This site uses cookies! uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.


Premium Member
  • Content count

  • Joined

  • Last visited

Community Reputation

2 Neutral


About wonker21

  • Rank
  • Birthday 12/05/1996

Profile Information

  • Gender
  • Location:
  • Interests
    C#, C++, C, OpenGL, Unity3D, Blender, Photoshop
  1. Maybe your bullet has gravity checked?
  2. Haven't tested. Maybe this helps using UnityEngine; public class camraycast : MonoBehaviour { Camera mycamera; public Transform target; GameObject prefab; public int bulletSpeed = 10; public GameObject angle; // camera void Start() { prefab = Resources.Load("bullets") as GameObject; } void Update() { if (Input.GetMouseButtonDown(0)) { Vector3 camScreen = new Vector3(0.5f, 0.5f, 0f); // center of the screen float rayLength = 500f; RaycastHit hit; Ray ray = mycamera.ViewportPointToRay(camScreen); Debug.DrawRay(ray.origin, ray.direction * rayLength,; if (Physics.Raycast(ray, out hit, rayLength)) { print ("Looking at : " +; GameObject bullets = Instantiate(prefab) as GameObject; bullets.transform.position = transform.position + angle.transform.forward * 0.1f; Rigidbody rb = bullets.GetComponent<Rigidbody>(); rb.AddForce((hit.point - angle.transform.position) * bulletSpeed); Destroy(bullets, 9f); } } } }
  3. But the camera is a child of player. Isn't it? It would still follow the player. Sorry I don't quite know whats your setup.
  4. I dont know if it's tilt but maybe this could help. And then you could just Lerp Angle variable based on input and such
  5. How is it even 10 Gigs??
  6. Really cool little game. Can be very challenging. Love the visuals
  7. Youre rotating the sprite itself. You would want to use billboard shader.
  8. If the task is in C++ then here you go:
  9. What is the file format you are trying to stream? Because for example mp3 streaming is only supported on mobile platforms and not web or standalone. Edit: You may try to convert mp3 to ogg or other formats With Ogg it works just fine. using UnityEngine; using System.Collections; [RequireComponent(typeof(AudioSource))] public class PlayMusic : MonoBehaviour { public string path; private AudioSource source; IEnumerator Start() { source = GetComponent<AudioSource>(); WWW www = new WWW("file://" + path); yield return www; source.clip = www.GetAudioClip(false, true, AudioType.OGGVORBIS);//AudioType.MPEG); source.Play(); } }
  10. Do you plan on using AssetBundles for this to make it expandable after build? If so, I'm picking this up mate
  11. Maybe you need to yield the www to make sure it is actually ready. Could you show us some more logic?
  12. Also you can change icons of ScriptableObjects. How to here