Skip to main content

HitInfo and CollisionEffect

CollisionEffect component#

CollisionEffect is used for defining the physics collision material of an object. What you need to do is to attach this script to a collider, then fill in the material type it belongs to.

Here is a table of the built-in material name predefined.

Collision Material NameUsed For
WeaponBlade
WeaponBluntHammer, Metal, Handle
MetalEnvironment
BrickEnvironment
WoodEnvironment or Wooden Weapon
SandEnvironment
MeatNPC
BoneNPC

HitInfo component#

HitInfo is used for defining the damage each collider part can cause. Just the same as CollisionEffect, what you need to do is to add a RagdollHitInfoObj component then fill in the HitInfo name. And you also can define your own HitInfo.

Notice that you may need to use RagdollHitInfoRef component to bind multiple RagdollHitInfoObj as one hit identity, otherwise it will cause multiple hits at a time.

Here is a table of the built-in HitInfo name predefined. (the number value maybe a bit different from the game, since battle talent is still under developing)

NameVelocityMlpDamageMlpDamageThroughDamageCritStabMlpHitMlpHitRandomStabDamageBreakDefenceMlpHitBackMlpKnockoutFactorDizzyFactorStiffValue
Sword1.2100.51.51.51150.21201900.102.8
LightSaber1.2350.51.51.51200.21201900.102.8
Wood1.251.51.51125101.2900.50.52.8
Brick1.251.51.51130101.2900.50.52.8
Metal1.271.21.51125101.3112.50.30.42.8
Fist1.241.21.51125101900.30.42.8
Hammer1.261.51.511300.102112.50.40.43.6
SingleHammer1.2821.511250.102112.50.450.453.6
Axe1.21211.51.81200.11202900.103.6
Dagger1.350.524.51150.21200.8900.101.6
Katana1.2120.11.311150.21201900.101.6
Rapier1.280.21.531150.11201.5900.102.8
Shield1.281.21.511250.102900.30.42.8
Spear1.370.81.82.51200.11201.4112.50.102.8
Stick1.26121125101.5900.50.62.8
SwordWind1.2120.51.51.11150.11201900.102.8
SwordWind_Slash1.2200.51.51.11150.501112.50.502.8
Wand1.261211200.801.2900.50.62.8
Bullet1.230.44.511150.101900.102.8
Explode1.2401111150.101400102.8
Arrow1.260.5621200.51201900.102.8
MagicBall1.2120.5411150.101900.302.8
Flame1.250.6211200.101112.50.302.8
IceSword1.2200.51.51.51150.21201900.102.8
Laser1.2150.621.51150.101900.302.8
FlySlash1.2150.511.31150.101900.302.8
FlyString1.2150.511.31150.101900.302.8
FlyThunder1.230.511.31150.1011400.102.8
FlyOriFire1.2150.5411150.101900.302.8
TrackBall2.21011.51.31150.101900.602.8
Spike1.2511.521150.11201112.50.302.8
SpikeSmall1.2311.521150.11201112.50.302.8
Drone1.222.51111150.1011500.302.8
DropObj1.25012111521201150102.8
KO1.220121115201120102.8