Swimming Pack for Opsive Character Controllers v2

by [email protected]

The Swimming Pack contains 4 abilities allowing your character to swim, dive, climb, and drown within the water.

For more detail this asset from the Unity Asset Store: Click Here

This is a paid asset, but now you can download the “Swimming Pack for Opsive Character Controllers” for FREEPlease keep in mind that this package is provided only for learning purposes or to test before buying the product, NOT FOR COMMERCIAL PURPOSES.

Swimming Pack for Opsive Character Controllers v2.0.1

VIP Only

REQUIRES any of the Opsive Character Controllers (link).

The Swimming Pack contains 4 abilities allowing your character to swim, dive, climb, and drown within the water. The Swimming Pack works in first or third person perspective with any of the Opsive character controllers.

Demo | Documentation | Forum | Discord

The following abilities are included:

– Climb from Water

– Dive

– Drown

– Swim

Import Errors
If you receive any import errors after importing the Swimming Pack it is likely for one of the two reasons:

You don’t first have one of the Opsive Character Controllers imported. The Swimming Pack requires any of the controllers to first be imported in order for it to work.
The Opsive/UltimateCharacterController/Demo folder is not imported. This directory is required from the character controllers in order for the Swimming Pack demo scene to work correctly.

Swimming Animations
An editor tool has been created that allows you to easily add the swimming animation states to your existing animator controller. You can create the states for all of the abilities used within the Swimming Pack by opening the Add-Ons Manager (Tools -> Opsive -> Ultimate Character Controller -> Add-Ons Manager) and specifying the character that you want to add the animations to:

Water Setup
The swim ability activates when it comes into contact with a water trigger. This trigger should be setup by performing the following:

Create the GameObject that will contain the trigger collider.
Set the GameObject layer to water
Add a Box Collider to the GameObject, ensuring Is Trigger is set to true.
In the demo scene the water mesh is a child of the water trigger but this is not a requirement.

Custom Water Assets
The Swim ability is designed to be able to work with other water assets than what is included in the demo folder. By default the Swim ability will determine the height of the water by the top of the trigger’s bounding box, but this can also be set to a custom value. In order to set a custom value the SetWaterSurfacePosition method can be called on the Swim ability. This method takes a float which specifies the upper vertical position of the water plane. In the example below the position will be set to a value of 5.

 

Related Posts

Leave a Comment