Raised This Month: $ Target: $400
 0% 

Slow down rolling ball


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
davidkoh007
Junior Member
Join Date: Mar 2015
Old 07-03-2017 , 18:17   Slow down rolling ball
Reply With Quote #1

Hey, I'm working on a SJ mod for CSGO and I got a prop_sphere.

When I kick the ball and it starts rolling on a flat floor, It seems that it will never stop rolling. It's slowing down a bit but not as much as I'd like to. Can I somehow slow it down faster?

Last edited by davidkoh007; 07-03-2017 at 18:35.
davidkoh007 is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-04-2017 , 02:50   Re: Slow down rolling ball
Reply With Quote #2

Open hammer and look for a friction property.

Or

Dump netprops and look for a friction property for prop_sphere.
__________________
Neuro Toxin is offline
davidkoh007
Junior Member
Join Date: Mar 2015
Old 07-04-2017 , 16:00   Re: Slow down rolling ball
Reply With Quote #3

Thanks, friction was the right keyward to look for. However, I was trying overridescript, changing material surface, also m_flFriction, all these affected the ball touch with the world, but only when the ball was bouncing, it indeed added friction, but as soon as the ball stops bouncing and starts rolling, it still doesnt't slow down.

Last edited by davidkoh007; 07-04-2017 at 16:01.
davidkoh007 is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-04-2017 , 17:05   Re: Slow down rolling ball
Reply With Quote #4

Try a func_physics_override.
__________________
Neuro Toxin is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-05-2017 , 03:40   Re: Slow down rolling ball
Reply With Quote #5

There is separate rotational/angular friction.

EDIT: Looks like VPhysics internally has a concept of both angular drag and rotational damping in different places, sadly the stuff for this isn't currently exposed in my VPhysics extension. Your problem will probably be solved by increasing friction and lowering mass though.
__________________

Last edited by asherkin; 07-05-2017 at 03:55.
asherkin is offline
davidkoh007
Junior Member
Join Date: Mar 2015
Old 07-23-2017 , 12:15   Re: Slow down rolling ball
Reply With Quote #6

I tried even changing mass, it all affects the bounce movement of the walls or ground, but nothing affects the rolling, I guess it cant really be solved atm?
davidkoh007 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode