neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 18.9 kB
JavaScript
;
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Joint = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function Joint(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, EditModeOnly = props.EditModeOnly, AllowSteal = props.AllowSteal, DropOnDisable = props.DropOnDisable, DontDrive = props.DontDrive, AllowOnlyPhysicalGrab = props.AllowOnlyPhysicalGrab, ActiveUserFilter = props.ActiveUserFilter, CustomGrabCheck = props.CustomGrabCheck, _grabber = props._grabber, _holdSlot = props._holdSlot, _pos = props._pos, _rot = props._rot, _scl = props._scl, __legacyActiveUserRootOnly = props.__legacyActiveUserRootOnly, GrabPriority = props.GrabPriority, MaxSwing = props.MaxSwing, MaxTwist = props.MaxTwist, Axis = props.Axis, TwistReferenceAxis = props.TwistReferenceAxis, PositionTwistThresholdAngle = props.PositionTwistThresholdAngle, VibrationAngle = props.VibrationAngle, VibrationPreset = props.VibrationPreset, SnapIncrement = props.SnapIncrement, SnapTime = props.SnapTime, SnapOnRelease = props.SnapOnRelease, SnapOrientations = props.SnapOrientations, origRotation = props.origRotation, rotReference = props.rotReference, dirReference = props.dirReference, twistReference = props.twistReference, usePositionTwist = props.usePositionTwist;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.Joint", id: id, persistentId: persistentId, updateOrder: updateOrder }, { children: [(0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Enabled", id: typeof Enabled === "object" && "id" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.id : undefined, value: typeof Enabled === "object" && "value" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.value : Enabled !== null && Enabled !== void 0 ? Enabled : true, isRaw: typeof Enabled === "object" && "isRaw" in Enabled && Enabled.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "EditModeOnly", id: typeof EditModeOnly === "object" && "id" in EditModeOnly ? EditModeOnly === null || EditModeOnly === void 0 ? void 0 : EditModeOnly.id : undefined, value: typeof EditModeOnly === "object" && "value" in EditModeOnly ? EditModeOnly === null || EditModeOnly === void 0 ? void 0 : EditModeOnly.value : EditModeOnly, isRaw: typeof EditModeOnly === "object" && "isRaw" in EditModeOnly && EditModeOnly.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AllowSteal", id: typeof AllowSteal === "object" && "id" in AllowSteal ? AllowSteal === null || AllowSteal === void 0 ? void 0 : AllowSteal.id : undefined, value: typeof AllowSteal === "object" && "value" in AllowSteal ? AllowSteal === null || AllowSteal === void 0 ? void 0 : AllowSteal.value : AllowSteal, isRaw: typeof AllowSteal === "object" && "isRaw" in AllowSteal && AllowSteal.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "DropOnDisable", id: typeof DropOnDisable === "object" && "id" in DropOnDisable ? DropOnDisable === null || DropOnDisable === void 0 ? void 0 : DropOnDisable.id : undefined, value: typeof DropOnDisable === "object" && "value" in DropOnDisable ? DropOnDisable === null || DropOnDisable === void 0 ? void 0 : DropOnDisable.value : DropOnDisable, isRaw: typeof DropOnDisable === "object" && "isRaw" in DropOnDisable && DropOnDisable.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "DontDrive", id: typeof DontDrive === "object" && "id" in DontDrive ? DontDrive === null || DontDrive === void 0 ? void 0 : DontDrive.id : undefined, value: typeof DontDrive === "object" && "value" in DontDrive ? DontDrive === null || DontDrive === void 0 ? void 0 : DontDrive.value : DontDrive, isRaw: typeof DontDrive === "object" && "isRaw" in DontDrive && DontDrive.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AllowOnlyPhysicalGrab", id: typeof AllowOnlyPhysicalGrab === "object" && "id" in AllowOnlyPhysicalGrab ? AllowOnlyPhysicalGrab === null || AllowOnlyPhysicalGrab === void 0 ? void 0 : AllowOnlyPhysicalGrab.id : undefined, value: typeof AllowOnlyPhysicalGrab === "object" && "value" in AllowOnlyPhysicalGrab ? AllowOnlyPhysicalGrab === null || AllowOnlyPhysicalGrab === void 0 ? void 0 : AllowOnlyPhysicalGrab.value : AllowOnlyPhysicalGrab, isRaw: typeof AllowOnlyPhysicalGrab === "object" && "isRaw" in AllowOnlyPhysicalGrab && AllowOnlyPhysicalGrab.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.ActiveUserHandling]", name: "ActiveUserFilter", id: typeof ActiveUserFilter === "object" && "id" in ActiveUserFilter ? ActiveUserFilter === null || ActiveUserFilter === void 0 ? void 0 : ActiveUserFilter.id : undefined, value: typeof ActiveUserFilter === "object" && "value" in ActiveUserFilter ? ActiveUserFilter === null || ActiveUserFilter === void 0 ? void 0 : ActiveUserFilter.value : ActiveUserFilter, isRaw: typeof ActiveUserFilter === "object" && "isRaw" in ActiveUserFilter && ActiveUserFilter.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncDelegate`1[FrooxEngine.GrabCheck]", name: "CustomGrabCheck", id: typeof CustomGrabCheck === "object" && "id" in CustomGrabCheck ? CustomGrabCheck === null || CustomGrabCheck === void 0 ? void 0 : CustomGrabCheck.id : undefined, value: typeof CustomGrabCheck === "object" && "value" in CustomGrabCheck ? CustomGrabCheck === null || CustomGrabCheck === void 0 ? void 0 : CustomGrabCheck.value : CustomGrabCheck, isRaw: typeof CustomGrabCheck === "object" && "isRaw" in CustomGrabCheck && CustomGrabCheck.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Grabber]", name: "_grabber", id: typeof _grabber === "object" && "id" in _grabber ? _grabber === null || _grabber === void 0 ? void 0 : _grabber.id : undefined, value: typeof _grabber === "object" && "value" in _grabber ? _grabber === null || _grabber === void 0 ? void 0 : _grabber.value : _grabber, isRaw: typeof _grabber === "object" && "isRaw" in _grabber && _grabber.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_holdSlot", id: typeof _holdSlot === "object" && "id" in _holdSlot ? _holdSlot === null || _holdSlot === void 0 ? void 0 : _holdSlot.id : undefined, value: typeof _holdSlot === "object" && "value" in _holdSlot ? _holdSlot === null || _holdSlot === void 0 ? void 0 : _holdSlot.value : _holdSlot, isRaw: typeof _holdSlot === "object" && "isRaw" in _holdSlot && _holdSlot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.Sync`1[BaseX.float3]]", name: "_pos", id: typeof _pos === "object" && "id" in _pos ? _pos === null || _pos === void 0 ? void 0 : _pos.id : undefined, value: typeof _pos === "object" && "value" in _pos ? _pos === null || _pos === void 0 ? void 0 : _pos.value : _pos, isRaw: typeof _pos === "object" && "isRaw" in _pos && _pos.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.Sync`1[BaseX.floatQ]]", name: "_rot", id: typeof _rot === "object" && "id" in _rot ? _rot === null || _rot === void 0 ? void 0 : _rot.id : undefined, value: typeof _rot === "object" && "value" in _rot ? _rot === null || _rot === void 0 ? void 0 : _rot.value : _rot, isRaw: typeof _rot === "object" && "isRaw" in _rot && _rot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.Sync`1[BaseX.float3]]", name: "_scl", id: typeof _scl === "object" && "id" in _scl ? _scl === null || _scl === void 0 ? void 0 : _scl.id : undefined, value: typeof _scl === "object" && "value" in _scl ? _scl === null || _scl === void 0 ? void 0 : _scl.value : _scl, isRaw: typeof _scl === "object" && "isRaw" in _scl && _scl.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "__legacyActiveUserRootOnly-ID", id: typeof __legacyActiveUserRootOnly === "object" && "id" in __legacyActiveUserRootOnly ? __legacyActiveUserRootOnly === null || __legacyActiveUserRootOnly === void 0 ? void 0 : __legacyActiveUserRootOnly.id : undefined, value: typeof __legacyActiveUserRootOnly === "object" && "value" in __legacyActiveUserRootOnly ? __legacyActiveUserRootOnly === null || __legacyActiveUserRootOnly === void 0 ? void 0 : __legacyActiveUserRootOnly.value : __legacyActiveUserRootOnly, readOnly: true, isRaw: typeof __legacyActiveUserRootOnly === "object" && "isRaw" in __legacyActiveUserRootOnly && __legacyActiveUserRootOnly.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Int32]", name: "GrabPriority", id: typeof GrabPriority === "object" && "id" in GrabPriority ? GrabPriority === null || GrabPriority === void 0 ? void 0 : GrabPriority.id : undefined, value: typeof GrabPriority === "object" && "value" in GrabPriority ? GrabPriority === null || GrabPriority === void 0 ? void 0 : GrabPriority.value : GrabPriority, isRaw: typeof GrabPriority === "object" && "isRaw" in GrabPriority && GrabPriority.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MaxSwing", id: typeof MaxSwing === "object" && "id" in MaxSwing ? MaxSwing === null || MaxSwing === void 0 ? void 0 : MaxSwing.id : undefined, value: typeof MaxSwing === "object" && "value" in MaxSwing ? MaxSwing === null || MaxSwing === void 0 ? void 0 : MaxSwing.value : MaxSwing, isRaw: typeof MaxSwing === "object" && "isRaw" in MaxSwing && MaxSwing.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MaxTwist", id: typeof MaxTwist === "object" && "id" in MaxTwist ? MaxTwist === null || MaxTwist === void 0 ? void 0 : MaxTwist.id : undefined, value: typeof MaxTwist === "object" && "value" in MaxTwist ? MaxTwist === null || MaxTwist === void 0 ? void 0 : MaxTwist.value : MaxTwist, isRaw: typeof MaxTwist === "object" && "isRaw" in MaxTwist && MaxTwist.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "Axis", id: typeof Axis === "object" && "id" in Axis ? Axis === null || Axis === void 0 ? void 0 : Axis.id : undefined, value: typeof Axis === "object" && "value" in Axis ? Axis === null || Axis === void 0 ? void 0 : Axis.value : Axis, isRaw: typeof Axis === "object" && "isRaw" in Axis && Axis.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "TwistReferenceAxis", id: typeof TwistReferenceAxis === "object" && "id" in TwistReferenceAxis ? TwistReferenceAxis === null || TwistReferenceAxis === void 0 ? void 0 : TwistReferenceAxis.id : undefined, value: typeof TwistReferenceAxis === "object" && "value" in TwistReferenceAxis ? TwistReferenceAxis === null || TwistReferenceAxis === void 0 ? void 0 : TwistReferenceAxis.value : TwistReferenceAxis, isRaw: typeof TwistReferenceAxis === "object" && "isRaw" in TwistReferenceAxis && TwistReferenceAxis.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "PositionTwistThresholdAngle", id: typeof PositionTwistThresholdAngle === "object" && "id" in PositionTwistThresholdAngle ? PositionTwistThresholdAngle === null || PositionTwistThresholdAngle === void 0 ? void 0 : PositionTwistThresholdAngle.id : undefined, value: typeof PositionTwistThresholdAngle === "object" && "value" in PositionTwistThresholdAngle ? PositionTwistThresholdAngle === null || PositionTwistThresholdAngle === void 0 ? void 0 : PositionTwistThresholdAngle.value : PositionTwistThresholdAngle, isRaw: typeof PositionTwistThresholdAngle === "object" && "isRaw" in PositionTwistThresholdAngle && PositionTwistThresholdAngle.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "VibrationAngle", id: typeof VibrationAngle === "object" && "id" in VibrationAngle ? VibrationAngle === null || VibrationAngle === void 0 ? void 0 : VibrationAngle.id : undefined, value: typeof VibrationAngle === "object" && "value" in VibrationAngle ? VibrationAngle === null || VibrationAngle === void 0 ? void 0 : VibrationAngle.value : VibrationAngle, isRaw: typeof VibrationAngle === "object" && "isRaw" in VibrationAngle && VibrationAngle.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.VibratePreset]", name: "VibrationPreset", id: typeof VibrationPreset === "object" && "id" in VibrationPreset ? VibrationPreset === null || VibrationPreset === void 0 ? void 0 : VibrationPreset.id : undefined, value: typeof VibrationPreset === "object" && "value" in VibrationPreset ? VibrationPreset === null || VibrationPreset === void 0 ? void 0 : VibrationPreset.value : VibrationPreset, isRaw: typeof VibrationPreset === "object" && "isRaw" in VibrationPreset && VibrationPreset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "SnapIncrement", id: typeof SnapIncrement === "object" && "id" in SnapIncrement ? SnapIncrement === null || SnapIncrement === void 0 ? void 0 : SnapIncrement.id : undefined, value: typeof SnapIncrement === "object" && "value" in SnapIncrement ? SnapIncrement === null || SnapIncrement === void 0 ? void 0 : SnapIncrement.value : SnapIncrement, isRaw: typeof SnapIncrement === "object" && "isRaw" in SnapIncrement && SnapIncrement.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "SnapTime", id: typeof SnapTime === "object" && "id" in SnapTime ? SnapTime === null || SnapTime === void 0 ? void 0 : SnapTime.id : undefined, value: typeof SnapTime === "object" && "value" in SnapTime ? SnapTime === null || SnapTime === void 0 ? void 0 : SnapTime.value : SnapTime, isRaw: typeof SnapTime === "object" && "isRaw" in SnapTime && SnapTime.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "SnapOnRelease", id: typeof SnapOnRelease === "object" && "id" in SnapOnRelease ? SnapOnRelease === null || SnapOnRelease === void 0 ? void 0 : SnapOnRelease.id : undefined, value: typeof SnapOnRelease === "object" && "value" in SnapOnRelease ? SnapOnRelease === null || SnapOnRelease === void 0 ? void 0 : SnapOnRelease.value : SnapOnRelease, isRaw: typeof SnapOnRelease === "object" && "isRaw" in SnapOnRelease && SnapOnRelease.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncList`1[FrooxEngine.Joint+SnapOrientation]", name: "SnapOrientations", id: typeof SnapOrientations === "object" && "id" in SnapOrientations ? SnapOrientations === null || SnapOrientations === void 0 ? void 0 : SnapOrientations.id : undefined, value: typeof SnapOrientations === "object" && "value" in SnapOrientations ? SnapOrientations === null || SnapOrientations === void 0 ? void 0 : SnapOrientations.value : SnapOrientations, isRaw: typeof SnapOrientations === "object" && "isRaw" in SnapOrientations && SnapOrientations.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.floatQ]", name: "origRotation", id: typeof origRotation === "object" && "id" in origRotation ? origRotation === null || origRotation === void 0 ? void 0 : origRotation.id : undefined, value: typeof origRotation === "object" && "value" in origRotation ? origRotation === null || origRotation === void 0 ? void 0 : origRotation.value : origRotation, isRaw: typeof origRotation === "object" && "isRaw" in origRotation && origRotation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.floatQ]", name: "rotReference", id: typeof rotReference === "object" && "id" in rotReference ? rotReference === null || rotReference === void 0 ? void 0 : rotReference.id : undefined, value: typeof rotReference === "object" && "value" in rotReference ? rotReference === null || rotReference === void 0 ? void 0 : rotReference.value : rotReference, isRaw: typeof rotReference === "object" && "isRaw" in rotReference && rotReference.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "dirReference", id: typeof dirReference === "object" && "id" in dirReference ? dirReference === null || dirReference === void 0 ? void 0 : dirReference.id : undefined, value: typeof dirReference === "object" && "value" in dirReference ? dirReference === null || dirReference === void 0 ? void 0 : dirReference.value : dirReference, isRaw: typeof dirReference === "object" && "isRaw" in dirReference && dirReference.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "twistReference", id: typeof twistReference === "object" && "id" in twistReference ? twistReference === null || twistReference === void 0 ? void 0 : twistReference.id : undefined, value: typeof twistReference === "object" && "value" in twistReference ? twistReference === null || twistReference === void 0 ? void 0 : twistReference.value : twistReference, isRaw: typeof twistReference === "object" && "isRaw" in twistReference && twistReference.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "usePositionTwist", id: typeof usePositionTwist === "object" && "id" in usePositionTwist ? usePositionTwist === null || usePositionTwist === void 0 ? void 0 : usePositionTwist.id : undefined, value: typeof usePositionTwist === "object" && "value" in usePositionTwist ? usePositionTwist === null || usePositionTwist === void 0 ? void 0 : usePositionTwist.value : usePositionTwist, isRaw: typeof usePositionTwist === "object" && "isRaw" in usePositionTwist && usePositionTwist.isRaw ? true : undefined })] })));
}
exports.Joint = Joint;
;