Need Help Starting off Character Controller

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Need Help Starting off Character Controller

Postby BoingBoing » Tue Oct 27, 2009 3:02 am

Well right now all I have is a Capsule with the up-Vector constraint. The capsule moves by setting the velocity to the direction I want. I've also set the gravitational force on the Capsule to by higher than all the other physical objects for it to go down stairs smoothly.

The Capsule can move smoothly on a plane surface or a rough terrain, and can climb stairs.

This method has glitches like if you were to move into a wall while going down stairs it would hover until you stop moving or if there was a sharp corner.

I would also like to be able to jump, but I don't know how to find out of the Capsule is on the floor or not.

EDIT:
Any prebuilt Character Controller out there that I can take a look at? The Player Controller in the Newton Samples look pretty shady.
BoingBoing
 
Posts: 11
Joined: Sun Oct 04, 2009 4:15 pm

Re: Need Help Starting off Character Controller

Postby BoingBoing » Thu Oct 29, 2009 6:42 pm

Does anyone not understand my question?
BoingBoing
 
Posts: 11
Joined: Sun Oct 04, 2009 4:15 pm

Re: Need Help Starting off Character Controller

Postby Julio Jerez » Thu Oct 29, 2009 7:26 pm

Get these toturials, 202 is a playe controller tha does what you want
http://newtondynamics.com/wiki/index.ph ... =Tutorials

they do what you want.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Need Help Starting off Character Controller

Postby BoingBoing » Fri Oct 30, 2009 1:17 am

The Player Controller doesn't really react the way I want it to, and whenever I idle on the stairs I would fall through them.

It isn't physical, and its just awkward falling down.

All I want is a player that can move and jump.
BoingBoing
 
Posts: 11
Joined: Sun Oct 04, 2009 4:15 pm

Re: Need Help Starting off Character Controller

Postby Julio Jerez » Fri Oct 30, 2009 8:15 am

I am sorry them, that's how I know how to do it.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Need Help Starting off Character Controller

Postby BoingBoing » Fri Oct 30, 2009 9:42 pm

Well then is there a way to find out the floor that the character is on?
BoingBoing
 
Posts: 11
Joined: Sun Oct 04, 2009 4:15 pm

Re: Need Help Starting off Character Controller

Postby Julio Jerez » Fri Oct 30, 2009 11:24 pm

ray cast or Convex cast
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Need Help Starting off Character Controller

Postby BoingBoing » Fri Nov 20, 2009 8:45 pm

Well how could I create a character controller similar to the one in the joint library?
(I do a raycast and if the character hits a wall then it stops, but this stops the player from sliding on the walls.)
Last edited by BoingBoing on Fri Nov 20, 2009 9:07 pm, edited 1 time in total.
BoingBoing
 
Posts: 11
Joined: Sun Oct 04, 2009 4:15 pm

Re: Need Help Starting off Character Controller

Postby Julio Jerez » Fri Nov 20, 2009 9:06 pm

that would be that character controller, why don't you just use it.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Need Help Starting off Character Controller

Postby BoingBoing » Fri Nov 20, 2009 9:08 pm

Can't, I always get the application error. I can't even get the line which causes it.
BoingBoing
 
Posts: 11
Joined: Sun Oct 04, 2009 4:15 pm

Re: Need Help Starting off Character Controller

Postby Julio Jerez » Fri Nov 20, 2009 10:36 pm

how come that be? Get the Wiki toturials 203, it is simpler.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Need Help Starting off Character Controller

Postby BoingBoing » Sat Nov 21, 2009 1:32 am

It's pretty much the same thing. I tried both, and they both use Joint Library.

Anyways, do you know how to make the character slide on the wall when its slightly turned, and not just completely stop?
BoingBoing
 
Posts: 11
Joined: Sun Oct 04, 2009 4:15 pm

Re: Need Help Starting off Character Controller

Postby Julio Jerez » Sat Nov 21, 2009 8:58 am

no being able to get the joint library in a linking problem.
If yo ucan get Newton.dll working then teher is no reason to get then jointLibrary.dll too

making a joint like the vehicle and a player controller takes a lot of work and experience, if you ask me how to make a Player controller the new joint will be a joint lik teh one in the SDK already.
what make you think the new solution will be different?
you have to try the get it to link first.

had you play the player in the toturial demo, doesn't teh player slade on wall anb do most of the thong that you want.
If you get it to work, and you do no like it then you can learn for it work and what element it is using and try your own solutions.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Need Help Starting off Character Controller

Postby BoingBoing » Sat Nov 21, 2009 6:00 pm

Well right now I have it walking forward and backwards, and also gravity. My theory to have the character slide is to cast a ray to the left of the character and to the right of the character while it moves forwards. If the ray on the left detects anything and the one on the right doesn't, and there's something blocking the character then move to the right. And vice versa, If both rays don't detect anything or both rays detect something then just move straight.

And no, joint library doesn't work. It just doesn't. I've even copied the exact build settings.
BoingBoing
 
Posts: 11
Joined: Sun Oct 04, 2009 4:15 pm

Re: Need Help Starting off Character Controller

Postby dzeligman » Tue Dec 22, 2009 10:01 pm

Any ETA on when the char controller is going to be updated?
I'm really looking forward to/needing jump functionality and I can't figure out how to implement it on my own.
dzeligman
 


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron