This commit is contained in:
2026-07-14 11:44:07 +08:00
commit 4409c7b031
5906 changed files with 6959792 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
import { _decorator, CCClass, CCFloat, Component, director, Node, v3, Vec3 } from "cc";
const { ccclass, property } = _decorator
@ccclass('RagdollConstraint')
export class RagdollConstraint extends Component {
@property(Node)
connectedBone: Node = null;
@property(Vec3)
pivotA: Vec3 = v3()
@property(Vec3)
pivotB: Vec3 = v3()
@property(Vec3)
axisA: Vec3 = v3()
@property(Vec3)
axisB: Vec3 = v3()
@property(CCFloat)
angle: number = Math.PI / 4;
@property(CCFloat)
twistAngle: number = Math.PI / 8;
}