-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
Added buttons which sit on top of vertices. Those do not have any funcition atm but this will be added in the next step.
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
if (vlist != -1) then ds_list_destroy(vlist); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ z = 0; | |
model = -1; | ||
texture = -1; | ||
|
||
vlist = -1; | ||
|
||
// Transform options | ||
xsize = 1; | ||
ysize = 1; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
if (vlist != -1) then ds_list_destroy(vlist); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
event_inherited(); | ||
|
||
// Z axis | ||
z = 0; | ||
|
||
// Rotation | ||
look_dir = 0; | ||
look_pitch = 0; | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/// @author https://web.archive.org/web/20191214124933/https://gmc.yoyogames.com/index.php?showtopic=632606 | ||
function c_hit_fraction() { | ||
/* | ||
Returns a number between 0 and 1, which is the distance to the hit. | ||
*/ | ||
return external_call(global._c_hit_fraction); | ||
|
||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/// @author https://web.archive.org/web/20191214124933/https://gmc.yoyogames.com/index.php?showtopic=632606 | ||
function c_hit_nx() { | ||
/* | ||
Returns the x component of the normal of the last hit. | ||
*/ | ||
return external_call(global._c_hit_nx); | ||
|
||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/// @author https://web.archive.org/web/20191214124933/https://gmc.yoyogames.com/index.php?showtopic=632606 | ||
function c_hit_ny() { | ||
/* | ||
Returns the y component of the normal of the last hit. | ||
*/ | ||
return external_call(global._c_hit_ny); | ||
|
||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/// @author https://web.archive.org/web/20191214124933/https://gmc.yoyogames.com/index.php?showtopic=632606 | ||
function c_hit_nz() { | ||
/* | ||
Returns the z component of the normal of the last hit. | ||
*/ | ||
return external_call(global._c_hit_nz); | ||
|
||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/// @param n | ||
/// @author https://web.archive.org/web/20191214124933/https://gmc.yoyogames.com/index.php?showtopic=632606 | ||
function c_hit_object(argument0) { | ||
/* | ||
Returns the id's of the collision objects that were hit. | ||
For raycasts and sweeps, only one object can be hit so use 0 as the argument. | ||
Overlap tests can hit multiple objects to use argument0 to access each one. | ||
c_overlap_world() and c_overlap_world_position() return the number of objects that were hit. | ||
*/ | ||
return external_call(global._c_hit_object, argument0); | ||
|
||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.