UNPKG

neos-script

Version:

[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)

23 lines (22 loc) 6.79 kB
"use strict"; 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.LookAt = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../core"); function LookAt(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Target = props.Target, TargetPoint = props.TargetPoint, TargetPointSpace = props.TargetPointSpace, Up = props.Up, RotationOffset = props.RotationOffset, SwingReference = props.SwingReference, TwistReference = props.TwistReference, MaxSwing = props.MaxSwing, MaxTwist = props.MaxTwist, _target = props._target; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.LookAt", 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.SyncRef`1[FrooxEngine.Slot]", name: "Target", id: typeof Target === "object" && "id" in Target ? Target === null || Target === void 0 ? void 0 : Target.id : undefined, value: typeof Target === "object" && "value" in Target ? Target === null || Target === void 0 ? void 0 : Target.value : Target, isRaw: typeof Target === "object" && "isRaw" in Target && Target.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "TargetPoint", id: typeof TargetPoint === "object" && "id" in TargetPoint ? TargetPoint === null || TargetPoint === void 0 ? void 0 : TargetPoint.id : undefined, value: typeof TargetPoint === "object" && "value" in TargetPoint ? TargetPoint === null || TargetPoint === void 0 ? void 0 : TargetPoint.value : TargetPoint, isRaw: typeof TargetPoint === "object" && "isRaw" in TargetPoint && TargetPoint.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RootSpace", name: "TargetPointSpace", id: typeof TargetPointSpace === "object" && "id" in TargetPointSpace ? TargetPointSpace === null || TargetPointSpace === void 0 ? void 0 : TargetPointSpace.id : undefined, value: typeof TargetPointSpace === "object" && "value" in TargetPointSpace ? TargetPointSpace === null || TargetPointSpace === void 0 ? void 0 : TargetPointSpace.value : TargetPointSpace, isRaw: typeof TargetPointSpace === "object" && "isRaw" in TargetPointSpace && TargetPointSpace.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "Up", id: typeof Up === "object" && "id" in Up ? Up === null || Up === void 0 ? void 0 : Up.id : undefined, value: typeof Up === "object" && "value" in Up ? Up === null || Up === void 0 ? void 0 : Up.value : Up, isRaw: typeof Up === "object" && "isRaw" in Up && Up.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.floatQ]", name: "RotationOffset", id: typeof RotationOffset === "object" && "id" in RotationOffset ? RotationOffset === null || RotationOffset === void 0 ? void 0 : RotationOffset.id : undefined, value: typeof RotationOffset === "object" && "value" in RotationOffset ? RotationOffset === null || RotationOffset === void 0 ? void 0 : RotationOffset.value : RotationOffset, isRaw: typeof RotationOffset === "object" && "isRaw" in RotationOffset && RotationOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "SwingReference", id: typeof SwingReference === "object" && "id" in SwingReference ? SwingReference === null || SwingReference === void 0 ? void 0 : SwingReference.id : undefined, value: typeof SwingReference === "object" && "value" in SwingReference ? SwingReference === null || SwingReference === void 0 ? void 0 : SwingReference.value : SwingReference, isRaw: typeof SwingReference === "object" && "isRaw" in SwingReference && SwingReference.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.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.FieldDrive`1[BaseX.floatQ]", name: "_target", id: typeof _target === "object" && "id" in _target ? _target === null || _target === void 0 ? void 0 : _target.id : undefined, value: typeof _target === "object" && "value" in _target ? _target === null || _target === void 0 ? void 0 : _target.value : _target, isRaw: typeof _target === "object" && "isRaw" in _target && _target.isRaw ? true : undefined })] }))); } exports.LookAt = LookAt; ;