资源简介
Unity绑定机械关节,铰链,机构插件包 绑定完整的工程机械,例如:起重机,压路机,装载机,平地机,挖掘机等。绑定曲柄滑块机构,如往复活塞式内燃机,飞机行星发动机等
代码片段和文件信息
/*************************************************************************
* Copyright © 2017-2018 Mogoson. All rights reserved.
*------------------------------------------------------------------------
* File : EllipseCurve.cs
* Description : Define ellipse curve.
*------------------------------------------------------------------------
* Author : Mogoson
* Version : 0.1.0
* Date : 7/13/2018
* Description : Initial development version.
*************************************************************************/
using System;
using UnityEngine;
namespace Mogoson.Curve
{
///
/// Args of ellipse.
///
[Serializable]
public struct EllipseArgs
{
#region Field and Property
///
/// Center of ellipse.
///
public Vector3 center;
///
/// Semi minor axis of ellipse.
///
public float semiMinorAxis;
///
/// Semi major axis of ellipse.
///
public float semiMajorAxis;
#endregion
#region Public Method
///
/// Constructor.
///
/// Center of ellipse.
/// Semi minor axis of ellipse.
/// Semi major axis of ellipse.
public EllipseArgs(Vector3 center float semiMinorAxis float semiMajorAxis)
{
this.center = center;
this.semiMinorAxis = semiMinorAxis;
this.semiMajorAxis = semiMajorAxis;
}
#endregion
}
///
/// Ellipse curve.
///
public class EllipseCurve : ICurve
{
#region Field and Property
///
/// Args of ellipse curve.
///
public EllipseArgs args;
///
/// Length of curve.
///
public float Length
{
get
{
var minor = Mathf.Min(args.semiMinorAxis args.semiMajorAxis);
var major = Mathf.Max(args.semiMinorAxis args.semiMajorAxis);
return 2 * Mathf.PI * minor + 4 * (major - minor);
}
}
///
/// Max around radian of ellipse.
///
public virtual float MaxKey { get { return 2 * Mathf.PI; } }
#endregion
#region Public Method
///
/// Constructor.
///
public EllipseCurve()
{
args = new EllipseArgs();
}
///
/// Constructor.
///
/// Args of ellipse curve.
public EllipseCurve(EllipseArgs args)
{
this.args = args;
}
///
/// G
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-01-03 14:51 MGS-Machinery-master\
文件 487 2019-01-03 14:51 MGS-Machinery-master\.gitignore
目录 0 2019-01-03 14:51 MGS-Machinery-master\Assets\
文件 191 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode.me
目录 0 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\
文件 191 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\Curve.me
目录 0 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\Curve\
文件 3913 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\Curve\EllipseCurve.cs
文件 262 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\Curve\EllipseCurve.cs.me
文件 3699 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\Curve\HelixCurve.cs
文件 262 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\Curve\HelixCurve.cs.me
文件 1248 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\Curve\ICurve.cs
文件 262 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\Curve\ICurve.cs.me
文件 191 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\CurveHose.me
目录 0 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\CurveHose\
文件 191 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\CurveHose\Editor.me
目录 0 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\CurveHose\Editor\
文件 1380 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\CurveHose\Editor\CurveHoseEditor.cs
文件 262 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\CurveHose\Editor\CurveHoseEditor.cs.me
文件 191 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\CurveHose\sc
目录 0 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\CurveHose\sc
文件 1993 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\CurveHose\sc
文件 262 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\CurveHose\sc
文件 1317 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\CurveHose\sc
文件 262 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\CurveHose\sc
文件 8018 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\CurveHose\sc
文件 262 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\CurveHose\sc
文件 191 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\DesignPattern.me
目录 0 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\DesignPattern\
文件 191 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\DesignPattern\Singleton.me
目录 0 2019-01-03 14:51 MGS-Machinery-master\Assets\MGS-CommonCode\DesignPattern\Singleton\
............此处省略319个文件信息
- 上一篇:Docker ppt
- 下一篇:大连理工大学 软件学院 编译技术 上机代码
相关资源
- NGUIv3.9.7
- unity3d 9个带动画的卡通人物模型
- Unity3D制作的室内效果含有源文件
- 基于Unity3d的打飞机小游戏雷电
- Unity3D狙击手游戏源码
- 模拟Unity中的Hierarchy层级面板功能
- Unity非常炫酷的技能特效粒子
- UGUI超级简单的摇杆制作,摇杆控制物
-
NET+fr
amework+4.0+常用类库参考手册( - 打包工具SetupFactory7.0.1破解汉化版含教
- Unity3D 连连看游戏161883
- Unity3D 连连看游戏
- UNITY3d类似LOL5v5地图
- Unity3D RPG角色扮演游戏 源代码下
- 飞机大战-unity3d源码
- unity3d 跑酷游戏的源代码
- Unity 2D 游戏开发教程
- Supermap地图着色
- Unity3D网络游戏实战
- unity3d联网斗地主服务端+客户端
- Obi Fluidv4.0.1+Obi Cloth 4.0.1
- 3D Infinite Runner Toolkit
- VCSharp2013从入门到精通中英文版/Micr
- .netMVC框架微信公众号支付
- MapDownloader
- 语音卡开发真实案例
- untiy3d 简单td防守+射击游戏
- Unity3D树木、地皮贴图
- 用Unity3d做一个魔方
- Unity 2018 Shaders and Effects Cookbook 3rd Ed
评论
共有 条评论