Maybe it is a dumb question but anyways...
I habe a object (a) that fallows another object (b).
If object (a) collides with object (b), then no angle velocity shall be applied to (a).
Im using following code snipped of (a):
func _integrate_forces(state):
var lv = state.get_linear_velocity()
var vel = lv.length()
var cc = get_closest_character()
var t = state.get_transform()
var step = state.get_step()
(...)
state.set_linear_velocity(lv)
state.set_angular_velocity(0)
The last code line does not work.
Either state.set_angular_velocity(-state.get_angular_velocity())
gives a good result.
A help would be appreciated.