x


Walking through walls

I used the GridMove script from the Wiki and put it on a capsule. It has a capsule collider, and the box it's supposed to go through also has a box collider. I know that the FPS Controller prefab in the standard assets naturally doesn't go through walls and such, how do I make it like that?

more ▼

asked Mar 01 '12 at 11:36 PM

Mattchuuu gravatar image

Mattchuuu
94 9 16 20

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

1 answer: sort voted first

You're gonna have to give us some more details about your set-up. Since I'd assume many people havent heard of the script. Do you have a rigidbody attached to the player? Is either collider set to be a trigger?

more ▼

answered Mar 02 '12 at 12:03 AM

UdevMike gravatar image

UdevMike
46 8 9 10

It's a capsule with a gridMove script (http://www.unifycommunity.com/wiki/index.php?title=GridMove) It has a mesh, collider(trigger is not checked). It does not have a rigid body.

The wall is a box stretched 10x2x10, it has a mesh and a collider(trigger not checked).

Thanks for helping so far, If any more info is needed i'll reply asap!

Mar 02 '12 at 12:30 AM Mattchuuu
(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:

x70
x67
x61

asked: Mar 01 '12 at 11:36 PM

Seen: 711 times

Last Updated: Mar 02 '12 at 12:30 AM