nixos/lua-lsp/meta/3rd/Cocos4.0/library/cc/PhysicsJointDistance.lua

31 lines
941 B
Lua

---@meta
---@class cc.PhysicsJointDistance :cc.PhysicsJoint
local PhysicsJointDistance={ }
cc.PhysicsJointDistance=PhysicsJointDistance
---*
---@return boolean
function PhysicsJointDistance:createConstraints () end
---* Set the distance of the anchor points.
---@param distance float
---@return self
function PhysicsJointDistance:setDistance (distance) end
---* Get the distance of the anchor points.
---@return float
function PhysicsJointDistance:getDistance () end
---* Create a fixed distance joint.<br>
---* param a A is the body to connect.<br>
---* param b B is the body to connect.<br>
---* param anchr1 Anchr1 is the anchor point on body a.<br>
---* param anchr2 Anchr2 is the anchor point on body b.<br>
---* return A object pointer.
---@param a cc.PhysicsBody
---@param b cc.PhysicsBody
---@param anchr1 vec2_table
---@param anchr2 vec2_table
---@return self
function PhysicsJointDistance:construct (a,b,anchr1,anchr2) end