第3章 バイナリフォーマット


3-17. CollList


(3)Collエリア

 CollエリアはオブジェクトにリンクするCollisionデータを格納するエリアです。メモリマップは以下のようになっています。
CollHeader u32 coll_tag
u32 this_coll_index
u32 coll_header_size
u32 coll_size
u32 coll_name_index
u32 coll_type
CollData

図 Collエリアメモリマップ

u32 coll_tag Tag indicating Coll
TAG_COLL        0x000d0100

u32 this_coll_index Index number of this Coll
u32 coll_header_size Size of this CollHeader
u32 coll_size Size of this Coll
u32 coll_name_index Specify Coll name by index number 
u32 coll_type Specify Collision type. The following s are current defined Collision type.
COLL_TYPE_NONE          0x00000000
COLL_TYPE_TERRAIN       0x00000010
COLL_TYPE_POINT         0x00000020
COLL_TYPE_CIRCLE        0x00000021
COLL_TYPE_SPHERE        0x00000022
COLL_TYPE_CYLINDER      0x00000023
COLL_TYPE_BOX           0x00000024

COLL_TYPE_NONE: Specify when not Collision. This is (temporarily) used when having some CollData. Do not link Coll node to Obj which doesn't contain any Collision.
COLL_TYPE_TERRAIN: Specify Collision as terrain data.
COLL_TYPE_POINT: Piont Collision
COLL_TYPE_CIRCLE: Circle Collision
COLL_TYPE_SPHERE: Sphere Collision
COLL_TYPE_CYLINDER: Cylinder Collision
COLL_TYPE_BOX: Box Collision
Contents of CollData can be modified by the above flag.
CollData Storing actual Collision data


Copyright 1997 NINTENDO Co.,Ltd. All rights reserved.

目次へ次へ