x


Character Controller for tank?

Hi guys,

i'm not sure if this question has been asked before as i cannot find any relevant helps with this problem.

My issue is that when i applied character controller to my Tank, the capsule seems to be 10x smaller and i've resize the radius, it's height and the y axis to match fit the size of the tank.

Apparently, when i drop the player/control scripts inside, it does not fall down like as usual with gravity, or even with rigid body. I've changed the capsule settings again to height =2, radius =1.5 and y axis=1.5, only it drops down perfectly. I'm not sure how the mechanism of adjusting works but that's not what i want, with the default settings.

when my tank collides with the other tank, they seem to merge in together like making love, with laggy motions going on :)... and i think it's following the character controller size, i find it hard to fix the problem. Can anyone give some suggestions?

FBX import scale is = 1

*even if i scale them before making it a prefab, unity crashes..

more ▼

asked May 16 '10 at 07:36 AM

jason gravatar image

jason
17 2 2 4

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

I would recommend not trying to use a character controller for tanks. The character controller is for making first-person shooter controllers like those found in Quake. Vehicles are much better off when made using appropriate colliders (like box colliders), and using other methods of movement such as applying physics forces.

more ▼

answered May 16 '10 at 07:55 AM

Eric5h5 gravatar image

Eric5h5
80.1k 41 132 519

thanks for that mate. Well apparently i've applied box colliders around them and what do you mean by physics forces? Any good examples of codes where i can refer them to?

My lecturer was suggesting i keep to use them up as i have no other ideas on getting this to work. Thanks heaps!

May 16 '10 at 10:56 AM jason

@jason: Probably best to read the docs about physics: http://unity3d.com/support/documentation/Manual/Physics.html

May 16 '10 at 05:42 PM Eric5h5

k thanks Eric :)

May 18 '10 at 04:50 AM jason
(comments are locked)
10|3000 characters needed characters left

Hello! I have created a package tank for Unity3D. It contains a 3D model of a Panzer III, the necessary scripts for motion and shot, and the wheels animation and sound. Also includes a view from inside the tank! You can test it here: http://activeden.net/item/tank-pack-model-scripts/full_screen_preview/152736 This package is in http://activeden.net/item/tank-pack-...scripts/152736

I hope you enjoy it =)

more ▼

answered Jan 14 '11 at 07:49 PM

elritualk gravatar image

elritualk
27 1

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2484
x670

asked: May 16 '10 at 07:36 AM

Seen: 2233 times

Last Updated: May 16 '10 at 07:36 AM