本文整理汇总了C#中ParticleSystem.ScaleVelocity方法的典型用法代码示例。如果您正苦于以下问题:C# ParticleSystem.ScaleVelocity方法的具体用法?C# ParticleSystem.ScaleVelocity怎么用?C# ParticleSystem.ScaleVelocity使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ParticleSystem
的用法示例。
在下文中一共展示了ParticleSystem.ScaleVelocity方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddToScene
private void AddToScene()
{
string sceneName = WorldEditor.GetUniqueName(name, "Particle System");
particleSystem = ParticleSystemManager.Instance.CreateSystem(sceneName, particleSystemName);
particleSystem.ScaleVelocity(velocityScale);
baseHeight = particleSystem.DefaultHeight;
baseWidth = particleSystem.DefaultWidth;
ParticleScale = particleScale;
if (attached)
{
Axiom.Animating.AttachmentPoint attachmentPoint = displayObject.GetAttachmentPoint(attachmentPointName);
if (attachmentPoint == null)
{
attachmentPoint = new Axiom.Animating.AttachmentPoint(attachmentPointName, null, Quaternion.Identity, Vector3.Zero);
}
if (attachmentPoint.ParentBone != null)
{
tagPoint = displayObject.Entity.AttachObjectToBone(attachmentPoint.ParentBone, particleSystem, attachmentPoint.Orientation, attachmentPoint.Position);
node = null;
}
else
{
node = scene.CreateSceneNode();
node.Position = attachmentPoint.Position;
node.Orientation = attachmentPoint.Orientation;
displayObject.SceneNode.AddChild(node);
node.AttachObject(particleSystem);
}
}
else
{
node = scene.RootSceneNode.CreateChildSceneNode();
node.AttachObject(particleSystem);
node.Position = position;
node.ScaleFactor = scale;
node.Orientation = Quaternion.FromAngleAxis(rotation.y * MathUtil.RADIANS_PER_DEGREE, Vector3.UnitY);
}
}