mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-12 16:57:50 +00:00
Fox
This commit is contained in:
@@ -655,6 +655,21 @@ function POSITIONABLE:GetVelocityVec3()
|
||||
return nil
|
||||
end
|
||||
|
||||
--- Get relative velocity with respect to another POSITIONABLE.
|
||||
-- @param #POSITIONABLE self
|
||||
-- @param #POSITIONABLE positionable Other positionable.
|
||||
-- @return #number Relative velocity in m/s.
|
||||
function POSITIONABLE:GetRelativeVelocity(positionable)
|
||||
self:F2( self.PositionableName )
|
||||
|
||||
local v1=self:GetVelocityVec3()
|
||||
local v2=positionable:GetVelocityVec3()
|
||||
|
||||
local vtot=UTILS.VecAdd(v1,v2)
|
||||
|
||||
return UTILS.VecNorm(vtot)
|
||||
end
|
||||
|
||||
|
||||
--- Returns the POSITIONABLE height in meters.
|
||||
-- @param Wrapper.Positionable#POSITIONABLE self
|
||||
|
||||
Reference in New Issue
Block a user