mopaws.blogg.se

How to make your roblox character small
How to make your roblox character small












how to make your roblox character small

Now trace down from a known safe position using trace.startsolid is unreliable here, it doesn't get set when TracePlayerBBox( mv->GetAbsOrigin(), start, PlayerSolidMask(), COLLISION_GROUP_PLAYER_MOVEMENT, trace ) See how far up we can go without getting stuck Source engine method void CGameMovement::StayOnGround( void ) I was also looking into CFrame based methods similar to the source engine where they used some collision tracing and set the position to make characters stay on the ground Local maxUpImpulse = math.max((maxUpVelocity - currentVelocity.Y)*60, 0) Having to deal with not having a proper step event. step rate internally, not always the right thing for us here. Our dt jumps is weird due to throttling and the physics solver using a 240Hz Upward acceleration that would cause us to achieve this velocity in one step Local maxUpVelocity = math.sqrt(2.0*Workspace.Gravity*deltaHeight) Local deltaHeight = math.max((targetHeight - currentHeight)*1.01, 0) - 1% fudge factor to prevent jitter while idleĭeltaHeight = math.min(deltaHeight, HIP_HEIGHT) velocity we'll overshoot the target height and "jump." This is the physical limit for responsiveness.

how to make your roblox character small

Humans can't really thrust downward, just allow gravity to pull us down. Calculate the intitial velocity that under constant acceleration would crest at the target height. Don't go past a maxmium velocity or we'll overshoot our target height. (x1 = x0 + v*t + 0.5*a*t*t) for a to aproach target height over timeĪUp = Workspace.Gravity + 2*((targetHeight - currentHeight) - currentVelocity.Y*t)/(t*t)

how to make your roblox character small

Luanoids method: - counter gravity and then solve constant acceleration eq This prompted me to make my own which is this module so in all I definitely recommend you create your own. I studied it a couple times before but was also confused by the OOP structure similar to lol. I believe I also unconsciously took notes from their module organization as each state is a module script similar to mine. One idea is to take some notes from another humanoid replacement module luanoids, Perhaps you can take notes from their equations in a to get the upwards force. I do not know, other than the spring method I used has it’s flaws here as you described. Hey there, this problem is more complex then you think.














How to make your roblox character small