Im working on the physics for my soccer/football game and ive got stuff like shooting and dribbling down already, the one issue i have is the ball physics. I decided to switch from the ball and players not being able to collide to trying to want another system after playing MPS Futsal.
things ive tried: meh tried giving net ownership to whoever is the current owner of the ball/current carrier and it kind of just broke everything else do to with velocity like shooting etc and did not give me the sort of control i want
im a decent scripter but for some reason i cant wrap my head around how i would achieve this. no need to write out script for me just explain what i have to do. thank you
ive tried this, and even with a 4,4,4 ball (2x my nromal ball) it still doesnt achieve the same effect i want. also the the 2 games ive seen with the feature i desire have normal size balls.
Is making the player’s max slope angle zero an option?
Or you could try making the ball not collidable with the player character, then making an invisible cylinder that’s welded to the player that only the ball collides with.
I’ve not tried this before, but here’s a thought. Change the Y size of HumanoidRootPart to 6 (so that it touches the ground), and Humanoid.HipHeight to 0.
Are you sure colliding the ball and character won’t work? It appears that you added a system for kicking the ball when the character touches the ball. A collision group between the character and the ball would make the player enter the ball, but the touch function would still function, firing the shooting function automatically.
Well no. In the gif i posted i had collision on with the ball but normally its off, and when i touched the ball with collision on that was nothing scripted it was legit just flinging itself.
this is my shooting system i already made that uses m1 input and overlapparams.
when collision is turned on i dont get the smooth moving like i want i get the weird flinging like in the first gif.
--//Bloxynet
local player = game.Players.LocalPlayer
local character = script.Parent
local humanoid = character:WaitForChild("Humanoid")
humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing, false) -- We make the player not be able to climb
character.HumanoidRootPart.CollisionGroup = "Character" -- and we make the character a different collisiongroup
for i, Limbs in pairs(character:GetChildren()) do
if Limbs:IsA("BasePart") and Limbs.Name ~= "Head" then
Limbs.CustomPhysicalProperties = PhysicalProperties.new(0.7, 0.3, 0, 1, 100) -- we set the limbs to a different physical Property
end
end
As a result, the ball should no longer fling and should be smooth to play with.
Add a little force every time the character hits and it should work very smoothly!
I really appreciate all the help your giving me.
But ive already achieved this. I already have collision groups set up for the ball like you mentioned, and ive gotten to the same effect like in ur video but it still isnt the desired effect like in the gif at the start of the thread.
I have achieved something similar by using constraints. Making a cylinder that can ONLY collide with the character parts and connect it with a ball/socket to the ball itself. Add a alignrotation to keep it upright. Also maybe make it massless. Just a round wall around the ball that goes a few studs up. Just got to remember to account for the collision groups with rays, touches, and such.
i pretty much already have the same properties except some higher density to account for my ball being slightly smaller. thats the density that is optional for realistic ball physics.