粒子如何不随着父节点进行旋转

我做了一个刚体,是关于汽车轮子的,结构如下

创建了一个粒子,名字为:P_chentu_01,它的父节点为WheelRigid,父节点的组件如图:

粒子组件属性:


因为粒子的父节点是靠物理轮子的马达驱动进行移动的,但是由于轮子关节也有旋转功能,粒子就随着父节点进行旋转了,
但是我的功能需求是粒子只随着父节点刚体组件进行移动,旋转则不受父节点的刚体组件影响,请问下大神们,如何解决这个问题?

1赞

在update里手动更新位置

我很抱歉,但我必须问。 你可以粘贴我把输入属性字段放在同一行的代码吗? 我使用的是TypeScript,不知道如何去做。

谢谢!

( 我不会说中文,所以我使用谷歌翻译 )


I’m sorry, but I have to ask. Could you paste me the code that places the input property fields on the same row. I’m using TypeScript and have no idea how to do it.

(I can’t speak Chinese, so I use Google Translate)

Thank you!

sorry,Google Translate maybe Unreliabled, i can not understand what you mine.
(my english is not good)

I made a rigid body about the wheel of a car.
A particle is created with the name P_chentu_01, and its parent node is WheelRigid.
Because the parent of a particle is moved by a motor driven by a physical wheel,
the particle is rotated with the parent because of the rotational function of the wheel joint.
However, my functional requirement is that the particle only moves with the rigid body component of
the parent node, and the rotation is not affected by the rigid body component of the parent node. How do you solve this problem, please?

I made a rigid body about the wheel of a car.
A particle is created with the name P_chentu_01, and its parent node is WheelRigid.
Because the parent of a particle is moved by a motor driven by a physical wheel,
the particle is rotated with the parent because of the rotational function of the wheel joint.
However, my functional requirement is that the particle only moves with the rigid body component of
the parent node, and the rotation is not affected by the rigid body component of the parent node. How do you solve this problem, please?

That’s a good idea

you shouldn’t ask kinds of question like this in there and i suggest you to TS community find the way out

这个问题已经解决了,谢谢大家
This problem has been solved. Thank you.

可以说说解决方案吗,这边遇到了相同的问题?