26 lines
361 B
Markdown
26 lines
361 B
Markdown
# OBB::GetAxis
|
|
|
|
```cpp
|
|
Vector3 GetAxis(int index) const
|
|
```
|
|
|
|
获取 OBB 的局部轴。
|
|
|
|
**参数:**
|
|
- `index` - 轴索引 (0=X, 1=Y, 2=Z)
|
|
|
|
**返回:** `Vector3` - 对应的局部轴
|
|
|
|
**线程安全:** ✅
|
|
|
|
**复杂度:** O(1)
|
|
|
|
**示例:**
|
|
|
|
```cpp
|
|
Vector3 xAxis = obb.GetAxis(0);
|
|
```
|
|
|
|
## 相关文档
|
|
|
|
- [AABB 总览](aabb.md) - 返回 AABB/OBB 总览 |