|
Post by technovalley on Jan 18, 2020 23:20:34 GMT
Hi All,
I tried to integrate the Invector Swimming Add-On with the GAIA v2 plugin.
When I did the setup for 3rd person character with GAIA water created using the plugin, the player doesn't swim. Don't know why?
Thanks,
|
|
|
Post by manwitch on Jan 19, 2020 13:38:29 GMT
Hi All,
I tried to integrate the Invector Swimming Add-On with the GAIA v2 plugin.
When I did the setup for 3rd person character with GAIA water created using the plugin, the player doesn't swim. Don't know why?
Thanks,
Did you use the pool(as an example) from the demo scene to add the box colliders to the Gaia water? You need to add the right colliders with the right tags, and add the swim state to your animator(if you haven't already) by copy and paste to your animator from the swimming one.
|
|
|
Post by technovalley on Jan 19, 2020 14:25:55 GMT
Thanks manwitch for the reply.
Yes, I've followed all the instructions even using the same Tags and Layers and I've setup the collider as in the example exactly. I'm using the default animator attached to the swimming example.
Not sure if terrains might cause conflict with the swimming add-on as I've used the swimming example in other projects without terrains and it is working perfectly.
|
|
|
Post by manwitch on Jan 19, 2020 15:27:25 GMT
Hmm, the only thing I can think of (other than inadvertently missing something which I've done), if your box collider for the main water is even a little too high it won't trigger the swimming animations.
So check to make sure, if your sea level is 50 meters, your box collider must be 50 meters or even a tick lower other wise it never triggers.
ETA- And try to drop the vbot from the swimming demo into your scene and see if it will swim, that step has helped me several times lol.
|
|
|
Post by manwitch on Jan 19, 2020 15:35:57 GMT
You can also drop the pool prefab into your scene to see if your character is set up right. If it is your character should swim in the pool just fine.
Just trying to do a little trouble shooting, not insinuating you're doing anything wrong.
|
|
|
Post by manwitch on Jan 19, 2020 15:37:11 GMT
I'm using Gaia pro right now and it's working fine, so I don't think it is a terrain problem.
|
|
|
Post by technovalley on Jan 19, 2020 17:15:40 GMT
Thanks manwitch I will give it a try tonight. I will let you know of course
|
|
|
Post by technovalley on Jan 19, 2020 22:01:08 GMT
I've tried to add Gaia terrain and water in the swimming scene example and the swimming action is working as a charm however, I'm not able to detect the issue in the other scene.
|
|
|
Post by technovalley on Jan 20, 2020 20:40:31 GMT
I'm quite sure there is something wrong with the current Swimming Add-On (Probably I'm not right ) When I modify the working swimming example it works fine. When I create a new plane with Water Tag and Triggers Layer It doesn't work (note that I'm not using any integration just simple example). Knowing that I' use the box collider with the plane to be just under the whole plane and I tick the is trigger check box as well. Not sure If someone may help testing this. I'm using the Version 2018.4 Swimming Add-On v1.2a and Basic Locomotion v2.5.0
|
|
|
Post by manwitch on Jan 20, 2020 21:42:42 GMT
Yea, maybe it's the unity version you're using. I'm using the most current one, I think its 2019.2.18f, But I am having no issues with getting the character swimming in the Gaia ocean.
So when you add Gaia to your scene, Are you adding the box collider to the "ambient water sample"?
in the hierarchy (with Gaia pro) it's under Gaia environment-Gaia Water Environment-Ambient Water Sample
the box collider I put on is on that, the ambient water sample.
In the scene mode if you highlight Gaia Environment, in the hierarchy, and zoom way out its just the circle part with the water shader.
That's where I added it and made sure the circle was completely inside the box collider, set at -50 center to mimic the sea level, water tag, triggers layer, and checked is trigger on the box collider and it works.
LOL I hope you figure it out, because it's got me wondering...
Hopefully with frequent posts someone who can help more will chime in.
|
|
|
Post by technovalley on Jan 22, 2020 6:30:10 GMT
Thanks for your follow up. I can say that I've followed all what you advised before Finally, I've discovered what is the issue. I tried to create a new scene from scratch without GAIA just simple planes when I've created a new character not the V-BOTv2 one (using the Invector Menu) and I've used the Swimming V2 Animator. The swimming action didn't work and I've failed. When I've added the swimming script manually it failed too ! Now, with using the prefab character V-BOTv2 It worked fine in this example. I've tried to copy and paste swimming action from the prefab to my character. My character worked perfectly.
|
|