| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- return {
- summary = 'Convert a vector from world space to local space.',
- description = ' Converts a direction vector from world space to local space.',
- arguments = {
- wx = {
- type = 'number',
- description = 'The x component of the world vector.'
- },
- wy = {
- type = 'number',
- description = 'The y component of the world vector.'
- },
- wz = {
- type = 'number',
- description = 'The z component of the world vector.'
- },
- vector = {
- type = 'Vec3',
- description = 'The world vector.'
- }
- },
- returns = {
- x = {
- type = 'number',
- description = 'The x coordinate of the local vector.'
- },
- y = {
- type = 'number',
- description = 'The y coordinate of the local vector.'
- },
- z = {
- type = 'number',
- description = 'The z coordinate of the local vector.'
- }
- },
- variants = {
- {
- arguments = { 'wx', 'wy', 'wz' },
- returns = { 'x', 'y', 'z' }
- },
- {
- arguments = { 'vector' },
- returns = { 'x', 'y', 'z' }
- }
- },
- related = {
- 'Collider:getWorldVector',
- 'Collider:getLocalPoint',
- 'Collider:getWorldPoint'
- }
- }
|