About Store Forum Documentation Contact



Post Reply 
[Solved] Actor velocity
Author Message
Harry Offline
Member

Post: #1
[Solved] Actor velocity
When character actor fall on the groud is ctrl.actor.vel() is count by use this formula: v=g*t (v - velocity g - gravity t - time in air) or should I count it myself in code?

Now when I use actor.vel() and I fall for example from 4 meters character lose over half health, but when I fall from 20 meters character always have some health. In real life he should be dead.
(This post was last modified: 02-14-2011 11:35 AM by Harry.)
02-18-2010 12:20 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Actor velocity
ctrl.actor.vel().length()

actor.damping decreases velocity (in Polish its something like "opory powietrza")
02-18-2010 04:17 PM
Find all posts by this user Quote this message in a reply
Harry Offline
Member

Post: #3
RE: Actor velocity
Ok thanks.
02-18-2010 04:25 PM
Visit this user's website Find all posts by this user Quote this message in a reply
AndrewBGS Offline
Member

Post: #4
RE: [Solved] Actor velocity
I'm stunned how no one seems to complain about the character falling slower than a leaf.
So I'm starting to think people don't have that problem. Could it be anything I <emphasis on I> have done?
If i climb up on a cliff and drop an apple, a mace, a anything, it falls quickly and presumably accurate.
If I (as the player character) jump off the cliff, I'm falling (so gravity is in place all right) but soooo amazingly slow. I'd approximate it to under half a meter per second.
Am I the only one who gets this behaviour? Is it normal?

Either way, can you please tell me how I should make my player fall like a rock? I mean like any other object.
04-15-2013 02:06 PM
Find all posts by this user Quote this message in a reply
Ozmodian Offline
Member

Post: #5
RE: [Solved] Actor velocity
It is not only you. It has been happening since about 1 month back. I have not had time to look into it in detail yet though. Sorry I can't help more but maybe somebody else can.
04-15-2013 03:36 PM
Find all posts by this user Quote this message in a reply
AndrewBGS Offline
Member

Post: #6
RE: [Solved] Actor velocity
Well... at least I know i'm not the only one now, that's some comfort.
But it's really annoying in the game, I badly need to fix this somehow and I have no idea how. I played around with mass, dampening, kinematic stuff, but it didn't make the slightest difference with my falling speed (I know, mass doesn't influence gravitational acceleration, but when a guy is running out of ideas he tries everything he can think of)
(This post was last modified: 04-15-2013 05:49 PM by AndrewBGS.)
04-15-2013 05:48 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #7
RE: [Solved] Actor velocity
Hello! I'll check this in a moment smile
04-20-2013 10:10 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #8
RE: [Solved] Actor velocity
Please adjust damping of:
Physics.mtrl_ctrl
Physics.mtrl_ctrl_stop
after:
Physics.create

Next release will have those values smaller by default
04-20-2013 11:06 AM
Find all posts by this user Quote this message in a reply
Ozmodian Offline
Member

Post: #9
RE: [Solved] Actor velocity
Hi Esenthel,

I tried changing it to 0.001 and that did not help. The issue is that when the character jumps (even in Ineisis for example) he does not go very high and drifts back down slowly. I would think that was a gravity problem not a damping problem.

Code:
Physics.mtrl_ctrl.damping(0.001);
   Physics.mtrl_ctrl_stop.damping(0.001);
04-20-2013 01:58 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #10
RE: [Solved] Actor velocity
Hi,

Did you do this right after creation of Physics, and before creation of Game.Chr/Controller?

I did test it, and didn't experience problems - you can check "11 - physics/05 - Controllers" tutorial.
Do you have any issues there?

Edit: I've reproduced similar issue in Ineisis, I'm testing this.
04-20-2013 02:02 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #11
RE: [Solved] Actor velocity
I've narrowed it down:
It happens if you've enabled 'Controller.fall_control', I'm checking this.
04-20-2013 02:18 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #12
RE: [Solved] Actor velocity
fixed it smile will work ok in next release.
04-20-2013 03:26 PM
Find all posts by this user Quote this message in a reply
Ozmodian Offline
Member

Post: #13
RE: [Solved] Actor velocity
Thanks as always for the great support Esenthel. Much appreciated.
04-21-2013 01:57 AM
Find all posts by this user Quote this message in a reply
Post Reply