1 /**
2 
3 
4 Copyright:
5 Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur.  
6 Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md)  
7 Copyright (c) 2017-2018 Godot-D contributors  
8 
9 License: $(LINK2 https://opensource.org/licenses/MIT, MIT License)
10 
11 
12 */
13 module godot.physics2dtestmotionresult;
14 import std.meta : AliasSeq, staticIndexOf;
15 import std.traits : Unqual;
16 import godot.d.traits;
17 import godot.core;
18 import godot.c;
19 import godot.d.bind;
20 import godot.d.reference;
21 import godot.globalenums;
22 import godot.object;
23 import godot.classdb;
24 import godot.reference;
25 /**
26 
27 */
28 @GodotBaseClass struct Physics2DTestMotionResult
29 {
30 	package(godot) enum string _GODOT_internal_name = "Physics2DTestMotionResult";
31 public:
32 @nogc nothrow:
33 	union { /** */ godot_object _godot_object; /** */ Reference _GODOT_base; }
34 	alias _GODOT_base this;
35 	alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses);
36 	package(godot) __gshared bool _classBindingInitialized = false;
37 	package(godot) static struct GDNativeClassBinding
38 	{
39 		__gshared:
40 		@GodotName("get_collider") GodotMethod!(GodotObject) getCollider;
41 		@GodotName("get_collider_id") GodotMethod!(long) getColliderId;
42 		@GodotName("get_collider_rid") GodotMethod!(RID) getColliderRid;
43 		@GodotName("get_collider_shape") GodotMethod!(long) getColliderShape;
44 		@GodotName("get_collider_velocity") GodotMethod!(Vector2) getColliderVelocity;
45 		@GodotName("get_collision_normal") GodotMethod!(Vector2) getCollisionNormal;
46 		@GodotName("get_collision_point") GodotMethod!(Vector2) getCollisionPoint;
47 		@GodotName("get_motion") GodotMethod!(Vector2) getMotion;
48 		@GodotName("get_motion_remainder") GodotMethod!(Vector2) getMotionRemainder;
49 	}
50 	/// 
51 	pragma(inline, true) bool opEquals(in Physics2DTestMotionResult other) const
52 	{ return _godot_object.ptr is other._godot_object.ptr; }
53 	/// 
54 	pragma(inline, true) typeof(null) opAssign(typeof(null) n)
55 	{ _godot_object.ptr = n; return null; }
56 	/// 
57 	pragma(inline, true) bool opEquals(typeof(null) n) const
58 	{ return _godot_object.ptr is n; }
59 	/// 
60 	size_t toHash() const @trusted { return cast(size_t)_godot_object.ptr; }
61 	mixin baseCasts;
62 	/// Construct a new instance of Physics2DTestMotionResult.
63 	/// Note: use `memnew!Physics2DTestMotionResult` instead.
64 	static Physics2DTestMotionResult _new()
65 	{
66 		static godot_class_constructor constructor;
67 		if(constructor is null) constructor = _godot_api.godot_get_class_constructor("Physics2DTestMotionResult");
68 		if(constructor is null) return typeof(this).init;
69 		return cast(Physics2DTestMotionResult)(constructor());
70 	}
71 	@disable new(size_t s);
72 	/**
73 	
74 	*/
75 	GodotObject getCollider() const
76 	{
77 		checkClassBinding!(typeof(this))();
78 		return ptrcall!(GodotObject)(GDNativeClassBinding.getCollider, _godot_object);
79 	}
80 	/**
81 	
82 	*/
83 	long getColliderId() const
84 	{
85 		checkClassBinding!(typeof(this))();
86 		return ptrcall!(long)(GDNativeClassBinding.getColliderId, _godot_object);
87 	}
88 	/**
89 	
90 	*/
91 	RID getColliderRid() const
92 	{
93 		checkClassBinding!(typeof(this))();
94 		return ptrcall!(RID)(GDNativeClassBinding.getColliderRid, _godot_object);
95 	}
96 	/**
97 	
98 	*/
99 	long getColliderShape() const
100 	{
101 		checkClassBinding!(typeof(this))();
102 		return ptrcall!(long)(GDNativeClassBinding.getColliderShape, _godot_object);
103 	}
104 	/**
105 	
106 	*/
107 	Vector2 getColliderVelocity() const
108 	{
109 		checkClassBinding!(typeof(this))();
110 		return ptrcall!(Vector2)(GDNativeClassBinding.getColliderVelocity, _godot_object);
111 	}
112 	/**
113 	
114 	*/
115 	Vector2 getCollisionNormal() const
116 	{
117 		checkClassBinding!(typeof(this))();
118 		return ptrcall!(Vector2)(GDNativeClassBinding.getCollisionNormal, _godot_object);
119 	}
120 	/**
121 	
122 	*/
123 	Vector2 getCollisionPoint() const
124 	{
125 		checkClassBinding!(typeof(this))();
126 		return ptrcall!(Vector2)(GDNativeClassBinding.getCollisionPoint, _godot_object);
127 	}
128 	/**
129 	
130 	*/
131 	Vector2 getMotion() const
132 	{
133 		checkClassBinding!(typeof(this))();
134 		return ptrcall!(Vector2)(GDNativeClassBinding.getMotion, _godot_object);
135 	}
136 	/**
137 	
138 	*/
139 	Vector2 getMotionRemainder() const
140 	{
141 		checkClassBinding!(typeof(this))();
142 		return ptrcall!(Vector2)(GDNativeClassBinding.getMotionRemainder, _godot_object);
143 	}
144 	/**
145 	
146 	*/
147 	@property GodotObject collider()
148 	{
149 		return getCollider();
150 	}
151 	/**
152 	
153 	*/
154 	@property long colliderId()
155 	{
156 		return getColliderId();
157 	}
158 	/**
159 	
160 	*/
161 	@property RID colliderRid()
162 	{
163 		return getColliderRid();
164 	}
165 	/**
166 	
167 	*/
168 	@property long colliderShape()
169 	{
170 		return getColliderShape();
171 	}
172 	/**
173 	
174 	*/
175 	@property Vector2 colliderVelocity()
176 	{
177 		return getColliderVelocity();
178 	}
179 	/**
180 	
181 	*/
182 	@property Vector2 collisionNormal()
183 	{
184 		return getCollisionNormal();
185 	}
186 	/**
187 	
188 	*/
189 	@property Vector2 collisionPoint()
190 	{
191 		return getCollisionPoint();
192 	}
193 	/**
194 	
195 	*/
196 	@property Vector2 motion()
197 	{
198 		return getMotion();
199 	}
200 	/**
201 	
202 	*/
203 	@property Vector2 motionRemainder()
204 	{
205 		return getMotionRemainder();
206 	}
207 }