Unity-Technologies / UnityPlayground

A collection of simple scripts to create 2D physics game, intended for giving workshops to a young audience
MIT License
856 stars 163 forks source link

Asset-Store Fork: Follow Target (script) - lag introduced when 'Look at Target' selector enabled #17

Closed JimboPicton closed 6 years ago

JimboPicton commented 6 years ago

When using the 'Asset-Store' fork (as advised by Ciro) a bug is encountered in the 'Follow Target' (movement) script, if the 'Look at Target' selector is ticked.

The bug manifests itself as a lagging response as the game object with the 'Look at Target' script applied continually readjusts its orientation to match the target (using the orientation specified), but will not commence the pursuit until the target game object stops moving. This glitch manifests regardless of the chose orientation from the drop-down menu.

If the 'Look at Target' selector is left unticked the 'Follow Target' behaviour performs as expected and constantly pursues the target game object.

booyaa commented 6 years ago

@JimboPicton slightly off topic, but how did you get the Asset-Store fork of this repo? There's no mention of it in the README or the wiki.

JimboPicton commented 6 years ago

@booyaa

Hey Mark :-)

I’ve been using Ciro’s Playground Project framework for two years in the uni course that I run. Ciro and I often have chats about the code & functionality etc. I was having tech problems with one of the scripts (from memory it was to do with not being able to turn off the PP functionality in the title bar, so that I could access the ‘full’ Unity inspector fields for the physics properties) and he recommended that I try the Asset Store fork as he’d fixed the issue there. It fixed that issue, which was great, but I found the bug with the 'follow target script'....which is driving me (slightly) nuts

Love the PP framework - it's a great initiative and is well regarded by my largely design-centric students who aren't coders!

Cheers, Jim

ciro-unity commented 6 years ago

My colleague Ethan Bruins (Westerveld) should have corrected this issue. As such, I'll close it. Please advise if you think it's still present!

@booyaa Sorry Mark, the branch is gone. But it's nothing special, it was only a WIP branch of the version going on the AssetStore… but you get all the latest functionality in the Development branch.

JimboPicton commented 6 years ago

Great news, Ciro. We had a great run with the Playground Project this term. Glad to hear that you'll be moving it across to the Asset Store soon. Cheers! Jim