在某点施力

物理
Both Server and Client
Both Mobile and PC

在某点施加一次力,目标必须为刚体

声明

func AddForceAtPosition(target entity<Rigidbody>, force Vector3, position Vector3, forceMode ForceType)
go

参数

输入

名称 类型 描述
目标 Rigidbody 目标刚体
力矢量 Vector3 力矢量
位置 Vector3 施力位置
施力类型 ForceType 力的类型