用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:physics:physics

Physics 物理

Namespace: UnityEngine

Description 描述

Global physics properties and helper methods.

全局物理属性和辅助方法。

Static Variables 静态变量

AllLayersLayer mask constant to select all layers.
选择所有层的层蒙版常量。
bounceThresholdTwo colliding objects with a relative velocity below this will not bounce (default 2). Must be positive.
两个碰撞物体的相对速度如果在这个设定值之下,不会反弹。默认值2.。取值范围0到无穷大。必须为正数。
defaultContactOffsetThe default contact offset of the newly created colliders.
新创建碰撞器的默认接触偏移值。
DefaultRaycastLayersLayer mask constant to select default raycast layers.
选择默认投射层的层蒙版常数。
gravityThe gravity applied to all rigid bodies in the scene.
场景中应用到所有刚体的重力。
IgnoreRaycastLayerLayer mask constant to select ignore raycast layer.
选择忽略层的层蒙版常量。
queriesHitTriggersSpecifies whether queries (raycasts, spherecasts, overlap tests, etc.) hit Triggers by default.
指定查询(raycasts, spherecasts, overlap tests, etc.)是否碰到触发器。
sleepThresholdThe mass-normalized energy threshold, below which objects start going to sleep.
质量归一化的能量阈值,哪个对象开始休眠。
solverIterationCountThe default solver iteration count permitted for any rigid bodies (default 7). Must be positive.
默认的求解迭代次数允许使用任意刚体(默认为7)。必须为正数。

Static Functions 静态函数

BoxCastCasts the box along a ray and returns detailed information on what was hit.
沿射线投射立方体,并返回碰到的信息。
BoxCastAllLike Physics.BoxCast, but returns all hits.
就像Physics.BoxCast,但返回的是所有碰到的对象信息。
BoxCastNonAllocCast the box along the direction, and store hits in the provided buffer.
沿方向投射立方体,并储存到提供的缓冲器。
CapsuleCastCasts a capsule against all colliders in the scene and returns detailed information on what was hit.
在场景中针对所有碰撞器投射一个胶囊,并返回碰到的细节信息。
CapsuleCastAllLike Physics.CapsuleCast, but this function will return all hits the capsule sweep intersects.
像Physics.CapsuleCast,但这个函数将返回所有胶囊扫描交叉碰到的对象。
CapsuleCastNonAllocCasts a capsule against all colliders in the scene and returns detailed information on what was hit into the buffer.
针对场景中所有的碰撞器投射一个胶囊,并返回缓冲器中碰到什么的信息。
CheckBoxCheck whether the given box overlaps with other colliders or not.
检测给定盒是否与其他碰撞器重叠。
CheckCapsuleChecks if any colliders overlap a capsule-shaped volume in world space.
在世界坐标空间,检查胶囊体是否与任意碰撞器重叠。
CheckSphereReturns true if there are any colliders overlapping th
script/unityengine/classes/physics/physics.txt · 最后更改: 2016/08/02 05:26 (外部编辑)