기술 자료

Unity Engine

Download Unity

Unity Engine

CreateFromCenterAndExtents(float3, float3)

Creates the AABB from a center and extents.
읽는 시간 1분최근 업데이트: 3시간 전

Definition

public static MinMaxAABB CreateFromCenterAndExtents(float3 center, float3 extents)

Parameters

center

Center of AABB.

extents

Full extents of AABB.

Returns

Type

Description

MinMaxAABBAABB created from inputs.

Remarks

This function takes full extents. It is the distance between MinMaxAABB.Min and MinMaxAABB.Max. If you have half extents, you can call MinMaxAABB.CreateFromCenterAndHalfExtents.