Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make the Start/End Prefab able to be Raycasted?
#9
Sorry for real, i try to understand how it works. Thank you very much, you are so patient.
I will try to explain how my concept is now made.

The Start and End Prefab have 2 scripts attached.
One for Outlining and one which handles, what should happen, when my player is hitting it.
The two Prefabs have an Collider attached and are on the Layer "Pickable"

So, when my player aim at the start or end object, the object get outlined and i can press an button to interact with this object.
When i press an button, it will call an function on the object.

This works so far, i can interact with the created end / start prefab.

So, the script on the prefabs, looks like this: https://hastebin.com/gohosewoyi.cs

With this code, im moving the handle but not the rope end.

Edit: I just added this line "m_handle.AddParticle(0, transform.position, 1f);" (https://hastebin.com/ebevojocak.cs) and now i grab the first particle, i think. I need to figure out, how to grab the right particle, than its working Sonrisa

Edit 2: Ok, i think its working like i said now. Thank you very much.
Reply


Messages In This Thread
RE: How to make the Start/End Prefab able to be Raycasted? - by Rexima - 01-11-2017, 06:50 PM