Posted By: fastlane69
Angular Velocity - 05/08/03 04:04
I'm trying to get an angular velocity reading fromt he phent_getvelocity() function. According to manual:
----------------------------------------------
If pointLocal is (0,0,0) this returns the linear velocity of the object. Otherwise it's a combination of linear and angular velocity at the given distance from the center.
-------------------------------------------------
How I read this is that if I place my vecpointlocal on my center of mass, I only get a linear velocity reading. Makes sense and works.
However, if I displace vecpointlocal, say 100 units on the x-axis, I expect to get some angular velocity information. I have torqued my entity, it's actually rotating, but I'm getting no angular velocity information. I have tried several approaches and nothing.
Is it angular velocity or tangential velocity that is returned when vecpointlocal DNE null?
(Vangular= Vtangential/Radius)
Since you have to displace vecpointlocal to get an "angular" velocity reading, I suspect it's tangential, not angular.
I've tried vec_to_angle() on vecoutvelocity while rotating but not displaceing and nothing.
----------------------------------------------
If pointLocal is (0,0,0) this returns the linear velocity of the object. Otherwise it's a combination of linear and angular velocity at the given distance from the center.
-------------------------------------------------
How I read this is that if I place my vecpointlocal on my center of mass, I only get a linear velocity reading. Makes sense and works.
However, if I displace vecpointlocal, say 100 units on the x-axis, I expect to get some angular velocity information. I have torqued my entity, it's actually rotating, but I'm getting no angular velocity information. I have tried several approaches and nothing.
Is it angular velocity or tangential velocity that is returned when vecpointlocal DNE null?
(Vangular= Vtangential/Radius)
Since you have to displace vecpointlocal to get an "angular" velocity reading, I suspect it's tangential, not angular.
I've tried vec_to_angle() on vecoutvelocity while rotating but not displaceing and nothing.