summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/cc.PhysicsJointRotarySpring.lua
blob: 94884149dba32e90f06ea73c5a9b28e5313a0dfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---@meta

---@class cc.PhysicsJointRotarySpring :cc.PhysicsJoint
local PhysicsJointRotarySpring={ }
cc.PhysicsJointRotarySpring=PhysicsJointRotarySpring




---*  Get the spring soft constant.
---@return float
function PhysicsJointRotarySpring:getDamping () end
---*  Set the relative angle in radians from the body a to b.
---@param restAngle float
---@return self
function PhysicsJointRotarySpring:setRestAngle (restAngle) end
---*  Get the spring constant.
---@return float
function PhysicsJointRotarySpring:getStiffness () end
---* 
---@return boolean
function PhysicsJointRotarySpring:createConstraints () end
---*  Set the spring constant.
---@param stiffness float
---@return self
function PhysicsJointRotarySpring:setStiffness (stiffness) end
---*  Set the spring soft constant.
---@param damping float
---@return self
function PhysicsJointRotarySpring:setDamping (damping) end
---*  Get the relative angle in radians from the body a to b.
---@return float
function PhysicsJointRotarySpring:getRestAngle () end
---*  Create a damped rotary spring joint.<br>
---* param a A is the body to connect.<br>
---* param b B is the body to connect.<br>
---* param stiffness It's the spring constant.<br>
---* param damping It's how soft to make the damping of the spring.<br>
---* return A object pointer.
---@param a cc.PhysicsBody
---@param b cc.PhysicsBody
---@param stiffness float
---@param damping float
---@return self
function PhysicsJointRotarySpring:construct (a,b,stiffness,damping) end