Jump to content

Character Controller - Quicker/Sharper Jumps


Aaron Symons
 Share

Recommended Posts

Hi there!

 

I was just wondering if anyone has any ideas of how to make a Character Controller's jump "sharper", ie: jumps to desired max height as quick as we want, then falls to ground as quick as we want?

 

I'm using the entity:SetInput() to move the Character Controller.

 

Thanks!

Win7 64-bit | Intel i7-3770 3.40GHz | NVIDIA GeForce GTX 660

Link to comment
Share on other sites

I was thinking of doing that, but it would mean any physics I have running at the same time would also be affected. I was also thinking of adjusting the Character Controller's mass through the jump, but I'm wondering if there's a "better" way of doing it. :)

Win7 64-bit | Intel i7-3770 3.40GHz | NVIDIA GeForce GTX 660

Link to comment
Share on other sites

F=Force

m1=Mass of object

m2= mass of Earth

r=distance between the 2 masses

g=Gravitational constant

a=acceleration

 

The 2 equations are F=ma for falling objects and for the gravitational effect between 2 objects is F=(m1*m2*g)/(r^2)

Setting those equal to each other

 

m1*a=(m1*m2*g)/(r^2)

You can see that m1 or the mass of the object divides out on both sides and has no effect.

--This is completely generalized for ease of use.

Air resistance is main reason more massive objects fall faster given sufficient time.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...