HU/Element/Collision shape: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ The collision shape class represents invisible collision detection shapes that can be created in the GTA world. Collision shapes are typically used to detect physica...")
 
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
The collision shape class represents invisible collision detection shapes that can be created in the GTA world. Collision shapes are typically used to detect physical entities moving through them and perform actions when they do.
A collision shape osztály a GTA-világban a létrehozható láthatatlan collision formákat jelenti. A Collision formákat általában a fizikai személyek azonosítására használják, amikor keresztül mennek rajta és ezután valami hatást váltson ki.


The element type for this class is '''colshape'''.
Az osztály elemtípusa a '''colshape'''.


==XML szintaxis==
==XML szintaxis==
Line 14: Line 14:


===Kötelező paraméterek===
===Kötelező paraméterek===
* '''posX''': A float representing the X position of the colshape.
* '''posX''': A colshape X koordinátáját ábrázoló lebegőpontos szám.
* '''posY''': A float representing the Y position of the colshape.
* '''posY''': A colshape Y koordinátáját ábrázoló lebegőpontos szám.
* '''posZ''': A float representing the Z position of the colshape.
* '''posZ''': A colshape Z koordinátáját ábrázoló lebegőpontos szám.
* '''radius''': The radius of the colshape (spheres, tubes and circles only).
* '''radius''': A colshape sugara (spheres, tubes and circles only).
* '''width''': The width of the colshape (rectangles and cubes only).
* '''width''': A colshape szélesség (rectangles and cubes only).
* '''depth''': The depth of the colshape (rectangles and cubes only).
* '''depth''': A colshape mélysége (rectangles and cubes only).
* '''height''': The height of the colshape (cubes only).
* '''height''': A colshape magassága (cubes only).


===Tetszőleges paraméterek===
===Tetszőleges paraméterek===
* '''dimension''': The dimension the colshape is in
* '''dimension''': A dimenzió amiben a colshape benne van


==Related scripting functions==
==Related scripting functions==
{{Collision shape functions}}
{{Collision shape functions hu}}
[[Category:Element Types]]
[[Category:Element Types]]


[[en:Element/Collision shape]]
[[en:Element/Collision shape]]
[[it:Elemento/Collision shape]]
[[it:Elemento/Collision shape]]
==Fordította==
'''2018.11.11.''' <font size="3">'''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]'''</font>

Revision as of 16:50, 7 December 2018

A collision shape osztály a GTA-világban a létrehozható láthatatlan collision formákat jelenti. A Collision formákat általában a fizikai személyek azonosítására használják, amikor keresztül mennek rajta és ezután valami hatást váltson ki.

Az osztály elemtípusa a colshape.

XML szintaxis

<colcube posX="1024.768" posY="1248.1024" posZ="800.600" width="100" height="100" depth="100"/>
<colsphere posX="1024.768" posY="1248.1024" posZ="800.600" radius="100"/>
<coltube posX="1024.768" posY="1248.1024" posZ="800.600" radius="30" height="15"/>
<colrectangle posX="1024.768" posY="1248.1024" posZ="800.600" width="100" depth="61.8"/>
<colcircle posX="1024.768" posY="1248.1024" posZ="800.600" radius="30"/>

Kötelező paraméterek

  • posX: A colshape X koordinátáját ábrázoló lebegőpontos szám.
  • posY: A colshape Y koordinátáját ábrázoló lebegőpontos szám.
  • posZ: A colshape Z koordinátáját ábrázoló lebegőpontos szám.
  • radius: A colshape sugara (spheres, tubes and circles only).
  • width: A colshape szélesség (rectangles and cubes only).
  • depth: A colshape mélysége (rectangles and cubes only).
  • height: A colshape magassága (cubes only).

Tetszőleges paraméterek

  • dimension: A dimenzió amiben a colshape benne van

Related scripting functions

Fordította

2018.11.11. Surge