【发布时间】:2018-06-10 19:38:52
【问题描述】:
我创建了一个简单的nParticles,并带有一些表达式的初始方向和旋转,问题是在与地面碰撞时它们会继续旋转。我在网上遵循了一个教程,但我没有太多的表达经验。我在创作中使用了这些表达式:
nParticleShape1.InitialOrient = <<rand(360),rand(360),rand(360)>> ;
nParticleShape1.RotateFactor = <<rand(10),rand(10),rand(10)>> ;
在之后的运行时:
nParticleShape1.InitialOrient += nParticleShape1.RotateFactor ;
如何让它们在碰撞后停止旋转?
【问题讨论】: