Author Topic: Swimmer Playertype  (Read 792 times)

Is there a way to make a playertype that when in water, moves twice as fast?

Is there a way to make a playertype that when in water, moves twice as fast?
Yes
Code: [Select]
   maxUnderwaterForwardSpeed = "8.4";
   maxUnderwaterBackwardSpeed = "7.8";
   maxUnderwaterSideSpeed = "7.8";
simply change the values in the .cs, and if they aren't there then put them in.

I have also found that you have to modify the mass and drag of the player:

Quote
   mass = 80;
   drag = 0.01;

Also, by setting the density to 1 you don't go up or down in water without pressing a button, which adds a lot of control under water:

Quote
   density = 1;