Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Like a beam+whip?
#2
(05-01-2021, 06:58 AM)dakom Wrote: I'm just getting started with Obi, and tried playing around with particle attachments - but couldn't figure out how to do the following:

1. I'd like one end of the rope to always start at a certain transform (the user's hand)

2. The other end should _fling_ out over time - think like ghostbuster's beam. If that other end collides with an object, it should _attach_ to that other object

3. While it's attached on both ends, I'd like to be able to _wiggle_ the path and propogate other things along it

Basically, like a whip in that I can throw it out and hit something, and a beam in that it stays attached to the thing it hit.

Any suggestions?

1.- Use attachments: http://obi.virtualmethodstudio.com/tutor...ments.html

2.- Use collision callbacks to detect the collision: http://obi.virtualmethodstudio.com/tutor...sions.html
Then use either attachments or the particle API to hold the particle in place: http://obi.virtualmethodstudio.com/tutor...icles.html

3.- Wiggling will work automatically once both ends are attached to something.

let me know if you need further guidance. cheers!
Reply


Messages In This Thread
Like a beam+whip? - by dakom - 05-01-2021, 06:58 AM
RE: Like a beam+whip? - by josemendez - 08-01-2021, 01:55 PM
RE: Like a beam+whip? - by dakom - 08-01-2021, 02:00 PM
RE: Like a beam+whip? - by josemendez - 08-01-2021, 02:03 PM