FarseerPhysics.Dynamics.Body.clone C# (CSharp) Méthode

clone() public méthode

Makes a clone of the body. Fixtures and therefore shapes are not included. Use DeepClone() to clone the body, as well as fixtures and shapes.
public clone ( World world = null ) : Body
world World
Résultat Body
		public Body clone( World world = null )
		{
			var body = new Body( world ?? _world, position, rotation );
			body._bodyType = _bodyType;
			body._linearVelocity = _linearVelocity;
			body._angularVelocity = _angularVelocity;
			body.gravityScale = gravityScale;
			body.userData = userData;
			body._enabled = _enabled;
			body._fixedRotation = _fixedRotation;
			body._sleepingAllowed = _sleepingAllowed;
			body._linearDamping = _linearDamping;
			body._angularDamping = _angularDamping;
			body._awake = _awake;
			body.isBullet = isBullet;
			body.ignoreCCD = ignoreCCD;
			body.ignoreGravity = ignoreGravity;
			body._torque = _torque;

			return body;
		}