Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

1.0 KB
Raw Blame
<?xml version="1.0" encoding="UTF-8" ?>
<class name="PhysicsCastMotionResult3D" inherits="RefCounted" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
	<brief_description>
		Stores the result of a shape motion cast query.
	</brief_description>
	<description>
		This class contains the safe and unsafe fractions computed by [method PhysicsDirectSpaceState3D.cast_motion_into].
		[b]Note:[/b] For optimal performance results, it is recommended to create this object in advance, store it, and reuse it for every subsequent query.
	</description>
	<tutorials>
	</tutorials>
	<members>
		<member name="safe_fraction" type="float" setter="" getter="get_safe_fraction" default="1.0">
			The maximum fraction of the motion that can be made without a collision.
		</member>
		<member name="unsafe_fraction" type="float" setter="" getter="get_unsafe_fraction" default="1.0">
			The minimum fraction of the distance that must be moved for a collision.
		</member>
	</members>
</class>