04-05-2023, 10:05 AM
(This post was last modified: 04-05-2023, 10:10 AM by 5G_Zendmast.)
Hi!
We are more and more getting comfortable using ObiRope in our projects and we are learning something new every time.
This also means that we get stuck again on certain points and I would like to ask for some help
To set the scene:
- We have a cable that comes from a reel on a vessel
- The cable extends and goes in the water
- Once the cable is extended and at the ocean floor we need to attach the cable to an object on the floor
- This attachement point is not the beginning/end and is not a pre-determined location
I figured out with the documentation how to extend the cable to make it seem like its extending from a reel.
This looks very nice and works perfectly!
The next part that I'm stuck at is attaching the the cable to an object.
Usually I would:
- Make a rope blueprint
- Add controlpoint
- Add ObiAttachement component
- Attach an object to the Attachment component and assign the correct controlpoint
- Animate the objects transform to then also animate the cable behaviour at that point.
Though, in this case the situation is different as there is no rope blueprint with fixed controlpoints.
I can see in the documentation that you can add attachments during runtime but I don't quite understand how to do this.
I would think we need to know the following:
- Which element has the particles that we want to control
- Add a ObiAttachment
- Assign an object to the ObiAttachment
I'm no pro in scripting unfortunately and this is where I'm getting stuck.
I wanted to visualize the particles to get an idea of how the particles are positioned during runtime but the ObiParticleRenderer component doesn't seem to work and I can't seem to get it to work in any of the demo scenes either. Am I missing something obvious here? I'm using Unity2022 HDRP, and the Render checkbox is ticked in the component.
I have two screenshots attached to this post.
Hopefully my question makes sense
Thanks in advance!
Kind regards
We are more and more getting comfortable using ObiRope in our projects and we are learning something new every time.
This also means that we get stuck again on certain points and I would like to ask for some help
To set the scene:
- We have a cable that comes from a reel on a vessel
- The cable extends and goes in the water
- Once the cable is extended and at the ocean floor we need to attach the cable to an object on the floor
- This attachement point is not the beginning/end and is not a pre-determined location
I figured out with the documentation how to extend the cable to make it seem like its extending from a reel.
This looks very nice and works perfectly!
The next part that I'm stuck at is attaching the the cable to an object.
Usually I would:
- Make a rope blueprint
- Add controlpoint
- Add ObiAttachement component
- Attach an object to the Attachment component and assign the correct controlpoint
- Animate the objects transform to then also animate the cable behaviour at that point.
Though, in this case the situation is different as there is no rope blueprint with fixed controlpoints.
I can see in the documentation that you can add attachments during runtime but I don't quite understand how to do this.
I would think we need to know the following:
- Which element has the particles that we want to control
- Add a ObiAttachment
- Assign an object to the ObiAttachment
I'm no pro in scripting unfortunately and this is where I'm getting stuck.
I wanted to visualize the particles to get an idea of how the particles are positioned during runtime but the ObiParticleRenderer component doesn't seem to work and I can't seem to get it to work in any of the demo scenes either. Am I missing something obvious here? I'm using Unity2022 HDRP, and the Render checkbox is ticked in the component.
I have two screenshots attached to this post.
Hopefully my question makes sense
Thanks in advance!
Kind regards