About Store Forum Documentation Contact
Donations:
225$/mo



Post Reply 
Movement Speed.
Author Message
Xhizors Offline
Member

Post: #1
Movement Speed.
In the Chr->speed param, Is speed=1 = 1 meter / second?

I want my player to move 2 meters / second, I just put speed=2 ?

Thank you.
05-05-2010 04:20 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #2
RE: Movement Speed.
In character.h
PHP Code:
Flt         speed       // move   speed, default= 4.1, for changing animations speed please check Chr::Animation::speed
               
turn_speed  // turn   speed, default= 3.5
               
flying_speed// flying speed, default=25.0 

So in your player class:

speed = 1; will change speed to 1 its so simple smile

I think its in meters, but it could be rendered time/meters per frame but that would be way too fast in my opinion.


~Dynad

There is always evil somewhere, you just have to look for it properly.
(This post was last modified: 05-05-2010 04:41 PM by Dynad.)
05-05-2010 04:29 PM
Visit this user's website Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #3
RE: Movement Speed.
According to the manual.

Quote:Velocities are in meters per second units
Angular Velocities are in radians per second units

This indicates to me that it is in meters/sec, which seems pretty fast for a default of 4.1.
05-06-2010 12:59 AM
Find all posts by this user Quote this message in a reply
Xhizors Offline
Member

Post: #4
RE: Movement Speed.
This is a bit unclear, But is the speed param meters / seconds? Or inches / second?

Chr::speed = 2; // 2 Meters / second?

Thanks.
05-06-2010 07:18 AM
Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #5
RE: Movement Speed.
All the documentation talks about meters, nowhere have I seen anything about inches.

For an average human male:
2 m/s = 4.4 mph, which is a quick walking speed.
4.1 m/s (default) = 9.2 mph, which is a nice running speed.

The fastest recorded running speed in the world is 27.79 mph, which is 12.4 m/s. However I wouldn't let your characters get that fast, unless they are olympic runners.
05-06-2010 07:40 AM
Find all posts by this user Quote this message in a reply
Driklyn Offline
Member

Post: #6
RE: Movement Speed.
(05-06-2010 07:40 AM)fatcoder Wrote:  The fastest recorded running speed in the world is 27.79 mph, which is 12.4 m/s. However I wouldn't let your characters get that fast, unless they are olympic runners.

lol
05-06-2010 07:40 PM
Find all posts by this user Quote this message in a reply
Xhizors Offline
Member

Post: #7
RE: Movement Speed.
(05-06-2010 07:40 AM)fatcoder Wrote:  All the documentation talks about meters, nowhere have I seen anything about inches.

For an average human male:
2 m/s = 4.4 mph, which is a quick walking speed.
4.1 m/s (default) = 9.2 mph, which is a nice running speed.

The fastest recorded running speed in the world is 27.79 mph, which is 12.4 m/s. However I wouldn't let your characters get that fast, unless they are olympic runners.

I know that, But my question is if in EE the speed = 1 units / second?. And in EE Engine 1 unit = 1 meter.
05-10-2010 07:59 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #8
RE: Movement Speed.
speed yes, but for character controller the velocity can be different, that's because after you apply velocity, you get friction, gravity, damping..
05-10-2010 06:06 PM
Find all posts by this user Quote this message in a reply
johanz Offline
Member

Post: #9
RE: Movement Speed.
So how do we calculate it to get the right speed?
05-10-2010 06:18 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #10
RE: Movement Speed.
I dunno, this is because of physics in PhysX (not EE)
05-10-2010 06:25 PM
Find all posts by this user Quote this message in a reply
johanz Offline
Member

Post: #11
RE: Movement Speed.
So, does the ground have friction?
I wonder, do different materials support different friction sets.
05-10-2010 06:45 PM
Find all posts by this user Quote this message in a reply
Post Reply