Havok: Difference between revisions
Specify some header entries, added known classes
imported>HailToDodongo m (fix typos) |
imported>Kreny (Specify some header entries, added known classes) |
||
Line 60: | Line 60: | ||
==== hknm2 ==== | ==== hknm2 ==== | ||
{{ | {{Expand section}}Used in shrines and field sections. | ||
==== hkrb ==== | ==== hkrb ==== | ||
{{ | {{Expand section}}Used in actors. | ||
==== hkcl ==== | ==== hkcl ==== | ||
{{ | {{Expand section}}Used in actors. | ||
==== hkrg ==== | ==== hkrg ==== | ||
{{ | {{Expand section}}Used in actors. | ||
==== hksc ==== | ==== hksc ==== | ||
{{ | {{Expand section}}Used in shrines and field sections. | ||
==== hktmrb ==== | ==== hktmrb ==== | ||
{{ | {{Expand section}}Used in field sections. | ||
== Havok File Specification == | == Havok File Specification == | ||
Line 112: | Line 112: | ||
|<code>0x08</code> | |<code>0x08</code> | ||
|4 | |4 | ||
| | |Int | ||
| | |User tag (always 0) | ||
|- | |- | ||
|<code>0x0c</code> | |<code>0x0c</code> | ||
|4 | |4 | ||
| | |Int | ||
| | |Version (always 11) | ||
|- | |- | ||
|<code>0x10</code> | |<code>0x10</code> | ||
|1 | |1 | ||
|Byte | |Byte | ||
| | |Pointer size (always 4 on Wii U, 8 on Switch) | ||
|- | |- | ||
|<code>0x11</code> | |<code>0x11</code> | ||
|1 | |1 | ||
|Byte | |Byte | ||
| | |Endian (always 0 on WiiU, 1 on Switch) | ||
|- | |- | ||
|<code>0x12</code> | |<code>0x12</code> | ||
|1 | |1 | ||
|Byte | |Byte | ||
| | |Padding option (always 0 on WiiU, 1 on Switch) | ||
|- | |- | ||
|<code>0x13</code> | |<code>0x13</code> | ||
|1 | |1 | ||
|Byte | |Byte | ||
| | |Base class (always 1) | ||
|- | |- | ||
|<code>0x14</code> | |<code>0x14</code> | ||
|4 | |4 | ||
| | |Int | ||
| | |Section count (always 3) | ||
|- | |- | ||
|<code>0x18</code> | |<code>0x18</code> | ||
|4 | |4 | ||
| | |Int | ||
| | |Contents section index (always 2) | ||
|- | |- | ||
|<code>0x1c</code> | |<code>0x1c</code> | ||
|4 | |4 | ||
| | |Int | ||
| | |Contents section offset (always 0) | ||
|- | |- | ||
|<code>0x20</code> | |<code>0x20</code> | ||
|4 | |4 | ||
| | |Int | ||
| | |Contents classname section index (always 0) | ||
|- | |- | ||
|<code>0x24</code> | |<code>0x24</code> | ||
|4 | |4 | ||
| | |Int | ||
| | |Contents classname section offset (always 75) | ||
|- | |- | ||
|<code>0x28</code> | |<code>0x28</code> | ||
Line 172: | Line 172: | ||
|<code>0x38</code> | |<code>0x38</code> | ||
|4 | |4 | ||
| | |Int | ||
| | |Flags (always 0) | ||
|- | |- | ||
|<code>0x3c</code> | |<code>0x3c</code> | ||
|2 | |2 | ||
|Short | |Short | ||
|Unknown | |Unknown (always 21) | ||
|- | |- | ||
|<code>0x3e</code> | |<code>0x3e</code> | ||
|2 | |2 | ||
|Short | |Short | ||
| | |Section offset (0 or 16; if 16, the header is 16 bytes longer) | ||
|} | |} | ||
Line 197: | Line 197: | ||
|0x40 | |0x40 | ||
|2 | |2 | ||
| | |Int | ||
|Unknown | |Unknown (always 20) | ||
|- | |- | ||
|0x44 | |0x44 | ||
|4 | |4 | ||
|Int | |Int | ||
|Unknown | |Unknown (always 0; probably padding for alignment) | ||
|- | |- | ||
|0x48 | |0x48 | ||
|4 | |4 | ||
|Int | |Int | ||
|Unknown | |Unknown (always 0; probably padding for alignment) | ||
|- | |- | ||
|0x4c | |0x4c | ||
Line 475: | Line 470: | ||
== Data Classes == | == Data Classes == | ||
{{Expand section}} | {{Expand section}} | ||
All known | All known classes that chunks can use are listed here. | ||
{| class="wikitable" | |||
|+Generally used classes | |||
!Signature | |||
!Name | |||
|- | |||
|0x2772c11e | |||
|hkRootLevelContainer | |||
|- | |||
|} | |||
{| class="wikitable" | |||
|+Havok Animation classes | |||
!Signature | |||
!Name | |||
|- | |||
|0x26859f4c | |||
|hkaAnimationContainer | |||
|- | |||
|0xfec1cedb | |||
|hkaSkeleton | |||
|- | |||
|0xace9849c | |||
|hkaSkeletonMapper | |||
|- | |||
|0x5448f464 | |||
|hkaRagdollInstance | |||
|- | |||
|} | |||
{| class="wikitable" | |||
|+Havok Physics classes | |||
!Signature | |||
!Name | |||
|- | |||
|0x47a8ca83 | |||
|hkpPhysicsData | |||
|- | |||
|0xb3cc6e64 | |||
|hkpPhysicsSystem | |||
|- | |||
|0xcd2e69e5 | |||
|hkpRigidBody | |||
|- | |||
|0xfda179f3 | |||
|hkpCapsuleShape | |||
|- | |||
|0xda4ce91e | |||
|hkpConstraintInstance | |||
|- | |||
|0xed9648f7 | |||
|hkpRagdollConstraintData | |||
|- | |||
|0x75aae5a3 | |||
|hkpLimitedHingeConstraintData | |||
|- | |||
|0x143dd400 | |||
|hkpPositionConstraintMotor | |||
|- | |||
|0xabab6bb3 | |||
|hkpBvCompressedMeshShape | |||
|- | |||
|} | |||
{| class="wikitable" | |||
|+Havok Cloth classes | |||
!Signature | |||
!Name | |||
|- | |||
|0x3512912b | |||
|hclClothContainer | |||
|- | |||
|0xf14068be | |||
|hclCollidable | |||
|- | |||
|0xdd03f524 | |||
|hclCapsuleShape | |||
|- | |||
|0xd779f2c5 | |||
|hclSphereShape | |||
|- | |||
|0x92f3edba | |||
|hclClothData | |||
|- | |||
|0xe6105187 | |||
|hclSimClothData | |||
|- | |||
|0x426b3354 | |||
|hclStandardLinkConstraintSet | |||
|- | |||
|0x426b3354 | |||
|hclStretchLinkConstraintSet | |||
|- | |||
|0x82567805 | |||
|hclLocalRangeConstraintSet | |||
|- | |||
|0x9cfe2c7d | |||
|hclTransitionConstraintSet | |||
|- | |||
|0x26824757 | |||
|hclBendLinkConstraintSet | |||
|- | |||
|0x1b254ca1 | |||
|hclSimClothPose | |||
|- | |||
|0xa0130a2c | |||
|hclScratchBufferDefinition | |||
|- | |||
|0x7f4a5bfc | |||
|hclBufferDefinition | |||
|- | |||
|0x18fd4565 | |||
|hclTransformSetDefinition | |||
|- | |||
|0x6171b106 | |||
|hclObjectSpaceSkinPOperator | |||
|- | |||
|0xe65a701c | |||
|hclMoveParticlesOperator | |||
|- | |||
|0x75c72f0f | |||
|hclSimulateOperator | |||
|- | |||
|0x80d9769f | |||
|hclSimpleMeshBoneDeformOperator | |||
|- | |||
|0xda737296 | |||
|hclGatherAllVerticesOperator | |||
|- | |||
|0x7b02cd1b | |||
|hclClothState | |||
|- | |||
|0xe6db074c | |||
|hclCopyVerticesOperator | |||
|- | |||
|} | |||
{| class="wikitable" | |||
|+Havok AI classes | |||
!Signature | |||
!Name | |||
|- | |||
|0x6d493bdb | |||
|hkaiNavMesh | |||
|- | |||
|0x2f02d92c | |||
|hkaiDirectedGraphExplicitCost | |||
|- | |||
|0x433a1e61 | |||
|hkaiStaticTreeNavMeshQueryMediator | |||
|- | |||
|} | |||
{| class="wikitable" | |||
|+Havok Compound classes | |||
!Signature | |||
!Name | |||
|- | |||
|0x99e8d0cb | |||
|hkcdStaticAabbTree | |||
|- | |||
|0x33735476 | |||
|hkcdStaticTreeDefaultTreeStorage6 | |||
|- | |||
|0x5115a202 | |||
|StaticCompoundInfo | |||
|- | |||
|} | |||
<references /> | <references /> | ||
[[Category:File formats]] | [[Category:File formats]] |