[↑]
SPHITINFO
- Get the detailed information on collision detection results (collision time)
SPHITINFO()
- Get the detailed information of collision detection results (collision time and coordinates)
SPHITINFO OUT TM,X1,Y1,X2,Y2
- Get the detailed information of collision detection results (collision time, coordinates and velocity)
SPHITINFO OUT TM,X1,Y1,VX1,VY1,X2,Y2,VX2,VY2
1. Get the detailed information on collision detection results (collision time)
SPHITINFO()
Return Value
Collision Time
・Collision time: Real between 0 and 1
・Coordinates at the time of detection + velocity x collision time coincides with the collision coordinates.
Example
TM=SPHITINFO()
2. Get the detailed information of collision detection results (collision time and coordinates)
SPHITINFO OUT TM,X1,Y1,X2,Y2
Return Value
TM
・Collision time: Real between 0 and 1
・Coordinates at the time of detection + velocity x collision time coincides with the collision coordinates.
X1,Y1
Coordinate of object 1 at the time of collision
X2,Y2
Coordinate of object 2 at the time of collision
Example
SPHITINFO OUT TM,X1,Y1,X2,Y2
3. Get the detailed information of collision detection results (collision time, coordinates and velocity)
SPHITINFO OUT TM,X1,Y1,VX1,VY1,X2,Y2,VX2,VY2
Return Value
Collision time
・Collision time: Real between 0 and 1
・Coordinates at the time of detection + velocity x collision time coincides with the collision coordinates.
X1,Y1
Coordinate of object 1 at the time of collision
VX1,VY1
Object 1 velocity at impact
X2,Y2
Coordinate of object 2 at the time of collision
VX2,VY2
Object 2 velocity at impact
Example
SPHITINFO OUT TM,X1,Y1,VX1,VY1,X2,Y2,VX2,VY2
About this site
Our site is an unofficial manual site of programming software "SmileBASIC" for NintendoSwitch™.
I acquire the content of the site from the
official reference site
of the
SmileBoom Co.Ltd.
that is the development and sales cause of the software in real time (a minimum period of 24 hours update) and display it.
For automatic update, contents may become improper.
Please confirm the correct content in an official site.
June 3, 2020
by mim
OK
|