你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
Laya_z
赞同来自: LijiE
Laya_Fred
var shapeOffset = this._colliderShape.localOffset; var position = transform.position; var btPosition = PhysicsComponent._btVector30; if (shapeOffset.x !== 0 || shapeOffset.y !== 0 || shapeOffset.z !== 0) { var physicPosition = PhysicsComponent._tempVector30; var worldMat = transform.worldMatrix; Laya.Vector3.transformCoordinate(shapeOffset, worldMat, physicPosition); bt.btVector3_setValue(btPosition, -physicPosition.x, physicPosition.y, physicPosition.z); } else { bt.btVector3_setValue(btPosition, -position.x, position.y, position.z); } bt.btTransform_setOrigin(physicTransformOut, btPosition);
LijiE
赞同来自:
该问题目前已经被锁定, 无法添加新回复
4 个回复
Laya_z
赞同来自: LijiE
Laya_Fred
赞同来自: LijiE
处理后如图:
LijiE
赞同来自:
Laya_z
赞同来自: