Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Segregation of instructions to each rope at the time of collision
#4
GetComponent() is a Unity function, works with any GameObject in unity, including ropes. However the "collidedActor" variable is a struct of type ParticleInActor, so you can't use GetComponent on it. You should do:
Quote:collidedActor.actor.GetComponent<RopeController>();

cheers!
Reply


Messages In This Thread
RE: Segregation of instructions to each rope at the time of collision - by josemendez - 26-02-2021, 04:15 PM