x


Penelope Tutorial in Unity 3.4

Hi all, I'm having a hard time with my first Unity tutorial using Penelope. I understand this was created long ago, and I've gone through the process of converting the JavaScript to C# with the help of an online tutorial that ironed out some of the problems with old function calls. However, there seems to be a few things still going very wrong for me I'd appreciate some help with.

1) Using a stand-in character model with the CharacterController and a basic 10x10 plane, I am unable to get IsGrounded to read true at all. If I position the character's collision volume below the plane of the ground or at 0 Y axis it immediately falls through the world. If I move the player model up slightly (0.15 Y) it stays put but still doesn't read IsGrounded.

2) I can't tell if the basic CharacterController has gravity functioning at all. The script done in the tutorial contains code that zeros out the velocity Vector every frame if the player's on the ground, but I can't find any consistent downward force on the player. I've been reading up and it doesn't appear that Unity's basic Physics accounts for this unless you're using a RigidBody, is this correct?

If anyone has completed this tutorial from scratch could give me some pointers that would be awesome.

Thanks

more ▼

asked Sep 28 '11 at 02:13 PM

Xcalibur gravatar image

Xcalibur
1 2 2 2

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

1 answer: sort voted first

Not exactly what you're looking for, but for my project I just used the existing scene in the Standard Assets (Mobile) package for controls and it worked out of the box.

more ▼

answered Sep 28 '11 at 03:16 PM

thenelson gravatar image

thenelson
31 2 2 4

Thanks for the information! I'll have to compare the Standard Assets version with mine and see what's different (aside from .js vs .cs scripts)

Sep 29 '11 at 06:28 PM Xcalibur
(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:

x4150
x1866
x317
x28

asked: Sep 28 '11 at 02:13 PM

Seen: 1269 times

Last Updated: Sep 29 '11 at 06:28 PM