<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Worldprobe%3A%3AgetShapeTestResult</id>
	<title>Worldprobe::getShapeTestResult - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Worldprobe%3A%3AgetShapeTestResult"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Worldprobe::getShapeTestResult&amp;action=history"/>
	<updated>2026-07-24T19:44:52Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Worldprobe::getShapeTestResult&amp;diff=16614&amp;oldid=prev</id>
		<title>imported&gt;Marty uploader: yay</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Worldprobe::getShapeTestResult&amp;diff=16614&amp;oldid=prev"/>
		<updated>2017-05-06T21:35:37Z</updated>

		<summary type="html">&lt;p&gt;yay&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Parameters:&amp;lt;br&amp;gt;rayHandle - Ray Handle from a casted ray, as returned by CAST_RAY_POINT_TO_POINT&amp;lt;br&amp;gt;hit - Where to store whether or not it hit anything. False is when the ray reached its destination.&amp;lt;br&amp;gt;endCoords - Where to store the world-coords of where the ray was stopped (by hitting its desired max range or by colliding with an entity/the map)&amp;lt;br&amp;gt;surfaceNormal - Where to store the surface-normal coords (NOT relative to the game world) of where the entity was hit by the ray&amp;lt;br&amp;gt;entityHit - Where to store the handle of the entity hit by the ray&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Returns:&amp;lt;br&amp;gt;Result? Some type of enum.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;NOTE: To get the offset-coords of where the ray hit relative to the entity that it hit (which is NOT the same as surfaceNormal), you can use these two natives:&amp;lt;br&amp;gt;Vector3 offset = ENTITY::GET_OFFSET_FROM_ENTITY_GIVEN_WORLD_COORDS(entityHit, endCoords.x, endCoords.y, endCoords.z);&amp;lt;br&amp;gt;Vector3 entitySpotCoords = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(entityHit, offset.x, offset.y, offset.z);&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Use ENTITY::GET_ENTITY_TYPE(entityHit) to quickly distinguish what type of entity you hit (ped/vehicle/object - 1/2/3)&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.worldprobe.getShapeTestResult(rayHandle, hit, endCoords, surfaceNormal, entityHit);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;rayHandle:&amp;#039;&amp;#039;&amp;#039; int&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;hit:&amp;#039;&amp;#039;&amp;#039; BOOL&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;endCoords:&amp;#039;&amp;#039;&amp;#039; Vector3&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;surfaceNormal:&amp;#039;&amp;#039;&amp;#039; Vector3&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;entityHit:&amp;#039;&amp;#039;&amp;#039; Entity handle or object&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;object:&amp;#039;&amp;#039;&amp;#039; hit, endCoords, surfaceNormal, entityHit&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See also==&lt;br /&gt;
{{Worldprobe_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Marty uploader</name></author>
	</entry>
</feed>