I am making a sent that is just a can that is supposed to roll. In the ENT:Think function, I have:
physobj:AddAngleVelocity(Angle(0, 0, 10000))
It looks like it’s trying to roll, but it’s really just flying up off the ground about every 2 seconds. This seems so simple, but I can’t figure out how to simply make a can roll. Can somebody show me how dumb I am and tell me how to do it.
This might seem dumb and unrelated but maybe you should start with something bigger and then work your way down. Source doesn’t have the most realistic physics and it’ll probably be much easier to roll something bigger like a barrel. Once you get the hang of it you’ll be able to scale it down.
Angle velocity doesn’t produce much force since it is based off of the friction of the ground to propel it. If you wanted to propel the can enough to make it roll as an effect of the cause, you’ll need to use :ApplyForceCenter with a vector corresponding to the direction you want it to roll, and apply a force that is greater than the ground’s friction.