Difference between revisions of "Body (Español)"
m |
(→Constructores) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
Los Bodies (cuerpos) son objetos con velocidad y una posición. | Los Bodies (cuerpos) son objetos con velocidad y una posición. | ||
== Constructores == | == Constructores == | ||
− | {{#ask: [[Category:Functions]] [[Constructs::Body]] [[Concept:Current]] | + | {{#ask: [[Category:Functions]] [[Constructs::Body (Español)]] [[Concept:Current]] |
| headers=hide | | headers=hide | ||
| | | | ||
Line 15: | Line 15: | ||
== Funciones == | == Funciones == | ||
− | {{#ask: [[Category:Functions]] [[parent::Body||Object]] [[Concept:Current]] | + | {{#ask: [[Category:Functions]] [[parent::Body||Object (Español)]] [[Concept:Current]] |
| headers=hide | | headers=hide | ||
| limit=500 | | limit=500 | ||
Line 29: | Line 29: | ||
== Enums == | == Enums == | ||
− | {{#ask: [[Category:Enums]] [[parent::Body]] [[Concept:Current]] | + | {{#ask: [[Category:Enums]] [[parent::Body (Español)]] [[Concept:Current]] |
| headers=hide | | headers=hide | ||
| format=template | | format=template | ||
Line 40: | Line 40: | ||
}} | }} | ||
== Supertypes == | == Supertypes == | ||
− | * [[parent::Object]] | + | * [[parent::Object (Español)]] |
== Ver También == | == Ver También == | ||
− | * [[parent::love.physics]] | + | * [[parent::love.physics (Español)]] |
[[Category:Types]] | [[Category:Types]] | ||
{{#set:Description=Los Bodies son objetos con velocidad y una posición.}} | {{#set:Description=Los Bodies son objetos con velocidad y una posición.}} |
Latest revision as of 15:14, 17 December 2024
Los Bodies (cuerpos) son objetos con velocidad y una posición.
Constructores
love.physics.newBody (Español) | Creates a new body. |
Funciones
Body:applyAngularImpulse | Applies an angular impulse to a body. | 0.8.0 | |
Body:applyForce | Apply force to a Body. | ||
Body:applyImpulse | Applies an impulse to a body. | 0.8.0 | |
Body:applyLinearImpulse | Applies an impulse to a body. | 0.8.0 | |
Body:applyTorque | Apply torque to a body. | ||
Body:destroy | Explicitly destroys the Body. | ||
Body:getAllowSleeping | Return whether a body is allowed to sleep. | 0.7.0 | 0.8.0 |
Body:getAngle | Get the angle of the body. | ||
Body:getAngularDamping | Gets the Angular damping of the Body. | ||
Body:getAngularVelocity | Get the angular velocity of the Body. | ||
Body:getContactList | Gets a list of all Contacts attached to the Body. | 0.9.2 | 11.0 |
Body:getContacts | Gets a list of all Contacts attached to the Body. | 11.0 | |
Body:getFixtureList | Returns a table with all fixtures. | 0.8.0 | 11.0 |
Body:getFixtures | Returns a table with all fixtures. | 11.0 | |
Body:getGravityScale | Returns the gravity scale factor. | 0.8.0 | |
Body:getInertia | Gets the rotational inertia of the body. | ||
Body:getJointList | Returns a table containing the Joints attached to this Body. | 0.9.2 | 11.0 |
Body:getJoints | Returns a table containing the Joints attached to this Body. | 11.0 | |
Body:getLinearDamping | Gets the linear damping of the Body. | ||
Body:getLinearVelocity | Gets the linear velocity of the Body from its center of mass. | ||
Body:getLinearVelocityFromLocalPoint | Get the linear velocity of a point on the body. | ||
Body:getLinearVelocityFromWorldPoint | Get the linear velocity of a point on the body. | ||
Body:getLocalCenter | Get the center of mass position in local coordinates. | ||
Body:getLocalPoint | Transform a point from world coordinates to local coordinates. | ||
Body:getLocalPoints | Transforms multiple points from world coordinates to local coordinates. | 11.4 | |
Body:getLocalVector | Transform a vector from world coordinates to local coordinates. | ||
Body:getMass | Get the mass of the body. | ||
Body:getMassData | Returns the mass, its center, and the rotational inertia. | 0.8.0 | |
Body:getPosition | Get the position of the body. | ||
Body:getType | Returns the type of the body. | 0.8.0 | |
Body:getUserData | Returns the Lua value associated with this Body. | 0.9.1 | |
Body:getWorld | Gets the World the body lives in. | 0.9.2 | |
Body:getWorldCenter | Get the center of mass position in world coordinates. | ||
Body:getWorldPoint | Transform a point from local coordinates to world coordinates. | ||
Body:getWorldPoints | Transforms multiple points from local coordinates to world coordinates. | 0.8.0 | |
Body:getWorldVector | Transform a vector from local coordinates to world coordinates. | ||
Body:getX | Get the x position of the body in world coordinates. | ||
Body:getY | Get the y position of the body in world coordinates. | ||
Body:isActive | Returns whether the body is actively used in the simulation. | 0.8.0 | |
Body:isAwake | Returns the sleep status of the body. | 0.8.0 | |
Body:isBullet | Get the bullet status of a body. | ||
Body:isDestroyed | Gets whether the Body is destroyed. | 0.9.2 | |
Body:isDynamic | Get the dynamic status of the body. | 0.8.0 | |
Body:isFixedRotation | Returns whether the body rotation is locked. | 0.8.0 | |
Body:isFrozen | Get the frozen status of the body. | 0.8.0 | |
Body:isSleeping | Get the sleeping status of a body. | 0.8.0 | |
Body:isSleepingAllowed | Returns the sleeping behaviour of the body. | 0.8.0 | |
Body:isStatic | Get the static status of the body. | 0.8.0 | |
Body:isTouching | Gets whether the Body is touching the given other Body. | 11.0 | |
Body:putToSleep | Put the body to sleep. | 0.8.0 | |
Body:resetMassData | Resets the mass of the body. | 0.8.0 | |
Body:setActive | Sets whether the body is active in the world. | 0.8.0 | |
Body:setAllowSleeping | Set the sleep behaviour of a body. | 0.8.0 | |
Body:setAngle | Set the angle of the body. | ||
Body:setAngularDamping | Sets the angular damping of a Body | ||
Body:setAngularVelocity | Sets the angular velocity of a Body. | ||
Body:setAwake | Wakes the body up or puts it to sleep. | 0.8.0 | |
Body:setBullet | Set the bullet status of a body. | ||
Body:setFixedRotation | Set whether a body has fixed rotation. | ||
Body:setGravityScale | Sets a new gravity scale factor for the body. | 0.8.0 | |
Body:setInertia | Set the inertia of a body. | ||
Body:setLinearDamping | Sets the linear damping of a Body. | ||
Body:setLinearVelocity | Sets a new linear velocity for the Body. | ||
Body:setMass | Sets the mass properties directly. | ||
Body:setMassData | Overrides the calculated mass data. | 0.8.0 | |
Body:setMassFromShapes | Sets mass properties from attatched shapes. | 0.8.0 | |
Body:setPosition | Set the position of the body. | ||
Body:setSleepingAllowed | Sets the sleeping behaviour of the body. | 0.8.0 | |
Body:setType | Sets a new body type. | 0.8.0 | |
Body:setUserData | Associates a Lua value with the Body. | 0.9.1 | |
Body:setX | Set the x position of the body. | ||
Body:setY | Set the y position of the body. | ||
Body:wakeUp | Wake up a sleeping body. | 0.8.0 | |
Object:release (Español) | Destruye inmediatamente la referencia a lua del objeto. | 11.0 | |
Object:type (Español) | Obtiene el tipo del objeto como una cadena (string). | ||
Object:typeOf (Español) | Comprueba si un objeto es de un tipo determinado. |
Enums
Supertypes
Ver También
Otros Idiomas
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info