Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

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

DariusRusu

Member
  • Content Count

    106
  • Joined

  • Last visited

Community Reputation

8 Neutral

7 Followers

About DariusRusu

  • Rank
    Member
  • Birthday 04/18/2000

Profile Information

  • Gender
    Male
  • Location:
    Germany/Italy/Romanian

Contact Methods

  • Skype
    darius.rusu.18

Recent Profile Visitors

791 profile views
  1. DariusRusu

    Game menu

    Hi guys, im working on this racing game, i just wanted to show you my game menu, ask you if something doesn´t look good that i can do better https://gyazo.com/3725f43eb66be2432ac6602179621e62
  2. DariusRusu

    Redesigning

    Bruh, this stuff look clean asf, nice job!
  3. DariusRusu

    Camera Orbit is laggy

    I found the error, the rigidbody has to be interpolare, thanks guys for your attention
  4. DariusRusu

    Camera Orbit is laggy

    using UnityEngine; using System.Collections; [AddComponentMenu("Camera-Control/Mouse Orbit with zoom")] public class MouseOrbitImproved : MonoBehaviour { public Transform target; public float distance = 5.0f; public float xSpeed = 120.0f; public float ySpeed = 120.0f; public float yMinLimit = -20f; public float yMaxLimit = 80f; public float distanceMin = .5f; public float distanceMax = 15f; private Rigidbody rigidbody; float x = 0.0f; float y = 0.0f; // Use this for initialization void Start() { Vector3 angles = transform.eulerAngles; x = angles.y; y = angles.x; rigidbody = GetComponent<Rigidbody>(); // Make the rigid body not change rotation if (rigidbody != null) { rigidbody.freezeRotation = true; } } void LateUpdate() { if (target) { x += Input.GetAxis("Mouse X") * xSpeed * distance * 0.02f; y -= Input.GetAxis("Mouse Y") * ySpeed * 0.02f; y = ClampAngle(y, yMinLimit, yMaxLimit); Quaternion rotation = Quaternion.Euler(y, x, 0); distance = Mathf.Clamp(distance - Input.GetAxis("Mouse ScrollWheel") * 5, distanceMin, distanceMax); RaycastHit hit; if (Physics.Linecast(target.position, transform.position, out hit)) { distance -= hit.distance; } Vector3 negDistance = new Vector3(0.0f, 0.0f, -distance); Vector3 position = rotation * negDistance + target.position; transform.rotation = rotation; transform.position = position; } } public static float ClampAngle(float angle, float min, float max) { if (angle < -360F) angle += 360F; if (angle > 360F) angle -= 360F; return Mathf.Clamp(angle, min, max); } } I m using this script, the target is the vehicle object itself
  5. DariusRusu

    Camera Orbit is laggy

    Why is my camera so laggy if i rotate it, if i dont move the camera is not laggy: https://gyazo.com/7d0651fdcaed6d6c5c34109d6c7006be
  6. DariusRusu

    M3 E36

    Hmm, but there are no BMW logos on the car, i changed a bit on stuff on this car before using it
  7. DariusRusu

    M3 E36

    Small Update
  8. DariusRusu

    M3 E36

    What do you guys think? What should i improve?
  9. DariusRusu

    UI Trasparent for no reason

    Thanks for the answer, i already found the problem, it was the motion blur
  10. DariusRusu

    UI Trasparent for no reason

    I´ve just created a canvans, i added a button and this button is trasparent for no reason, does anyone know how to fix it? when i put i pause mode it gets back to be normal: https://gyazo.com/3ecb02b5c43d2252112650c9bf0f7ff5
  11. DariusRusu

    Graphic Bug

    Hi guys, today i made some modifications on the game graphic and it endet up like this: Anyone knows how to fix it?https://gyazo.com/cf0d653c55f7340418d967162e0e4282
  12. DariusRusu

    Script isn´t working

    It works, thanks OMA It works, thanks OMA and Whyherro for your time
  13. DariusRusu

    Script isn´t working

    yes i know, thanks anyway by the way the box collider is trigger
  14. DariusRusu

    Script isn´t working

    Good morning to everybody, i created this script, it works only if i put "void Update" where "void OnTriggerEnter" is i ain´t got errors but the script doesn´t work using System.Collections; using System.Collections.Generic; using UnityEngine; public class DestroyOBJ : MonoBehaviour { GameObject DestroyedBox; void Start () { DestroyedBox = Resources.Load ("DestroyedBox") as GameObject; } void OnTriggerEnter (Collider other) { if(Input.GetKeyDown(KeyCode.E)) { Explosion (); } } void Explosion () { GameObject expl = Instantiate (DestroyedBox, transform.position, transform.rotation) as GameObject; Destroy (expl, 3); Destroy (gameObject); } } Thanks for the attention, i hope you have a beautiful day!
×