You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
2.6 KiB
Plaintext

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

{\rtf1\ansi\ansicpg1252\deff0\nouicompat{\fonttbl{\f0\fswiss\fcharset0 Calibri;}{\f1\fswiss\fcharset204 Calibri;}}
{\*\generator Riched20 10.0.19041}\viewkind4\uc1
\pard\nowidctlpar\sl276\slmult1\qc\ul\b\f0\fs52\lang9 How to demolish Mesh object by shooting\ulnone\b0\fs24\lang1033\par
\pard\nowidctlpar\sl276\slmult1\fs22\lang9\par
\pard
{\pntext\f0 1.\tab}{\*\pn\pnlvlbody\pnf0\pnindent0\pnstart1\pndec{\pntxta.}}
\nowidctlpar\fi-360\li720\sl276\slmult1 Create a Cube, this will be the cube which will \lang1033 shoot and demolish\lang9 . \line\par
{\pntext\f0 2.\tab}Set its name to "Wall", position to [0,2,0] and scale to [1, 3, 4]\line\par
{\pntext\f0 3.\tab}Remove it's Box Collider because the Rigid component will add its own collider.\line\par
{\pntext\f0 4.\tab}Create another Cube, this will be a ground cube which will be used for collision.\line\par
{\pntext\f0 5.\tab}Set its name to "Ground", position to [0,0,0] and scale to [10,1,10]\line\par
{\pntext\f0 6.\tab}Add RayFire Rigid component to Wall.\line\par
{\pntext\f0 7.\tab}Set Rigid Initialization to At Start and Demolition type to \f1\lang1049 R\f0\lang1033 untime\lang9 .\line\par
{\pntext\f0 8.\tab}\lang1033 In Damage properties turn On Enable checkbox\lang9 . Now every shot will apply damage defined in Gun component, when Current Damage value will reach Max Damage value object will be demolished.\line\par
{\pntext\f0 9.\tab}Create Cylinder, this will be our gun\lang1033 .\lang9\line\par
{\pntext\f0 10.\tab}Set its name to "Gun", position to [5,2,0], rotation to [0, 0, 90] and scale to [0.2,0.4,0.2]\line\par
{\pntext\f0 11.\tab}Add RayFire Gun component to Gun object and set Axis property to Y Green, disable Show Impact property.\line\par
{\pntext\f0 12.\tab}\lang1033 Set Impact Strength property to 3, Damage value to 60 and enable Flash checkbox.\lang9\line\fs24\lang1033\par
{\pntext\f0 13.\tab}\fs22\lang9 Start Play Mode. \line\par
{\pntext\f0 14.\tab}Select Gun object and click on Single Shot button. The same can be initiated in your code by public method Shoot()\line\line\lang1033 Wall object will get physical impact and a small flash will appear for a moment at the impact point\lang9 .\line\par
{\pntext\f0 15.\tab}Select Wall object, in Damage properties you will see that Current Damage value now is 60. This damage was applied by first shot.\line\par
{\pntext\f0 16.\tab}Select Gun object and click on Single Shot button again.\line\line This time Wall object will be demolished because Current Damage value will be 120 which is more than Max Damage 100.\line\line\par
\pard\nowidctlpar\sl276\slmult1\line\fs24\lang1033\par
}