Skip to content
0.2.0-dev Download ZIP
20 lines ·1.0 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="PhysicsCastMotionResult2D" inherits="RefCounted" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Stores the result of a shape motion cast query.
5 </brief_description>
6 <description>
7 This class contains the safe and unsafe fractions computed by [method PhysicsDirectSpaceState2D.cast_motion_into].
8 [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.
9 </description>
10 <tutorials>
11 </tutorials>
12 <members>
13 <member name="safe_fraction" type="float" setter="" getter="get_safe_fraction" default="1.0">
14 The maximum fraction of the motion that can be made without a collision.
15 </member>
16 <member name="unsafe_fraction" type="float" setter="" getter="get_unsafe_fraction" default="1.0">
17 The minimum fraction of the distance that must be moved for a collision.
18 </member>
19 </members>
20</class>