UE4之SetActorLocation节点中的Sweep和Teleport的说明和解释
Sweep和Teleport英文释义:
Sweep英文释义:Whether we sweep to the destination location,triggering overlaps along the way and stopping short of the target if blocked by something.
Only the root component is swept and checked for blocking collision,child components move without sweeping,if collision is off,this has no effect.
Sweep中文翻译:我们是否扫瞄到目标位置,触发沿途的重叠,如果被什么东西挡住就会停在目标附近。
只有根组件被清除和检查阻塞碰撞,子组件移动而不清除,如果Collision是关闭的,这没有影响。
(Sweep作用有点类似Unity的运动刚体开关)
Teleport英文释义:Whether we teleport the physics state(if physics collision is enabled for this object). if true,physics velocity for this object is unchanged(so ragdoll parts are not affected by change in location). If false,physics velocity is updated based on the change in position(affecting ragdoll parts). If CCD is on and not teleporting, this will affect objects along the entire swept volume.
Teleport中文翻译:我们是否传送物理状态(如果这个对象启用了物理碰撞)。
如果为true,这个物体的物理速度是不变的(所以布偶部件不会受到位置变化的影响)。
如果为false,物理速度将根据位置的变化进行更新(影响布偶部件)。
如果CCD是开启的,而不是传送,这将影响沿整个扫描体积的物体。
Sweep与Teleport作用说明
Sweep用来阻止运动穿透,这个应该就是charactor不会穿透cube的原因
Teleport开启时,物体瞬间从一个位置移动到另一个位置,自身会产生一个很大的速度(瞬间移动时间很短,物理引擎正常会计算物体速度s/t,因为t很小,所以导致物体会有个很大的速度,teleport开启就不会计算这个自身的速度,物体瞬间移动后速度保持为0)
相关链接:
https://www.unrealengine.com/zh-CN/blog/moving-physical-objects?sessionInvalidated=true
https://answers.unrealengine.com/questions/16232/how-to-move-actorsobjects-via-velocity.html
https://blog.****.net/wag2765/article/details/84771683