Quantcast
Channel: Answers by "oddeven"
Browsing all 6 articles
Browse latest View live

Answer by oddeven

We got it working after all: float mx = Input.mousePosition.x * 0.666f; float my = (Input.mousePosition.y + 359f) * 0.666f; // 0.666 is 720/1080

View Article



Answer by oddeven

I would suggest restructuring things a bit. Think about creating a HitDamageScript that you attach to objects when you hit them. The script would render the damage for some time and then destroy...

View Article

Answer by oddeven

The line below does not destroy the GameObject, it destroys the RigidBody! You have an array of RigidBody's not GameObjects. Destroy(numLaunchObject[2]); // change to...

View Article

Answer by oddeven

We got it working after all: float mx = Input.mousePosition.x * 0.666f; float my = (Input.mousePosition.y + 359f) * 0.666f; // 0.666 is 720/1080

View Article

Answer by oddeven

I would suggest restructuring things a bit. Think about creating a HitDamageScript that you attach to objects when you hit them. The script would render the damage for some time and then destroy...

View Article


Answer by oddeven

The line below does not destroy the GameObject, it destroys the RigidBody! You have an array of RigidBody's not GameObjects. Destroy(numLaunchObject[2]); // change to...

View Article
Browsing all 6 articles
Browse latest View live


Latest Images